84 object =
vehCmd.GetTransport();
Super root of all classes in Enforce script.
static proto bool RaycastRV(vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, set< Object > results=NULL, Object with=NULL, Object ignore=NULL, bool sorted=false, bool ground_only=false, int iType=ObjIntersectView, float radius=0.0, CollisionFlags flags=CollisionFlags.NEARESTCONTACT)
Raycasts world by given parameters.
static proto bool SphereCastBullet(vector begPos, vector endPos, float radius, PhxInteractionLayers layerMask, Object ignoreObj, out Object hitObject, out vector hitPosition, out vector hitNormal, out float hitFraction)
static void LogWarning(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as warning message.
static bool IsFreeCameraEnabled()
static const float TELEPORT_DISTANCE_MAX_EX
static void OnRPC(PlayerBase player, int rpc_type, ParamsReadContext ctx)
static const float TELEPORT_DISTANCE_MAX
static void TeleportAtCursor()
static void TeleportAtCursorEx()
void OnRPCSetPlayerPosition(PlayerBase player, ParamsReadContext ctx)
static void SetPlayerDirection(PlayerBase player, vector direction)
void OnRPCSetPlayerDirection(PlayerBase player, ParamsReadContext ctx)
static void SetPlayerPosition(PlayerBase player, vector position, bool breakSync=false)
Serialization general interface. Serializer API works with:
Base native class for all motorized wheeled vehicles.
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
static const float RAD2DEG
proto native void SetVelocity(notnull IEntity ent, vector vel)
Sets linear velocity (for Rigid bodies)
proto void dBodySetAngularVelocity(notnull IEntity body, vector angvel)
Changed an angular velocity.