Pages 1
Universal Fighting Engine Forum Due to increased bot activity, we have discontinued support through the forum. For assistance, questions, and community discussions, please join our official Discord server |
You are not logged in. Please login or register.
Universal Fighting Engine Forum → 3D Gameplay → Changing the position of the character
Use the OnMove event (or similar events) to change the position at runtime:
using FPLibrary;
using UFE3D;
public class TeleportCharacter : MonoBehaviour
{
void Start()
{
UFE.OnMove += this.OnMove;
}
void OnMove(MoveInfo move, ControlsScript player)
{
player.worldTransform.position = FPVector.zero;
player.transform.position = player.worldTransform.position.ToVector();
}
}
For more on coding checkout http://www.ufe3d.com/doku.php/code
Universal Fighting Engine Forum → 3D Gameplay → Changing the position of the character
Powered by PunBB, supported by Informer Technologies, Inc.