Pages 1
Universal Fighting Engine Forum We are no longer using the forum to answer questions due to bot attacks. Please use our discord instead: https://discord.gg/hGMZhF7 |
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.