Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
IEntity Class Reference
Inheritance diagram for IEntity:
GenericEntity GenericEntity AIAutotest CommentEntity EditorCommentEntity MotionAutoTest PawnEntity PawnEntity PawnRelatedEntity PawnRelatedEntity PreviewWorldExample Projectile Projectile SCR_AIDebugVisualization SCR_AISendMessageDebugUI SCR_AddonManager SCR_AirstrikePrototype SCR_BasePrefabSpawner SCR_BasePreviewEntity SCR_BaseTutorialStage SCR_BuildingConfigManagerEntity SCR_CampaignRelayAlternativeSpot SCR_CustomMaterialAnimatorEntity SCR_DebrisBuildingEntity SCR_DoorOpenerEntity SCR_DownloadManager SCR_EditorBaseEntity SCR_EditorImageGeneratorEntity SCR_EditorPingEntity SCR_EditorRestrictionZoneEntity SCR_EditorServerEntity SCR_ExplosionGenerator SCR_FiringRangeController SCR_FiringRangeNetworkEntity SCR_GenericBoxEntity SCR_GridSpawnerEntity SCR_HeatMap_Autotest SCR_JointBaseEntity SCR_JointDummyHolderEntity SCR_LargeDestructibleEntity SCR_MPDestructionManager SCR_MainMenuEntity SCR_MapLocator SCR_MapMarkerEntity SCR_MovingSoundSourceEntity SCR_PopUpNotification SCR_PreviewEntity SCR_RegionIntersectDebrisEntity SCR_RplTestEntity SCR_SectorSpawn SCR_SiteSlotEntity SCR_SlotDisablerEntity SCR_SmallDestructibleEntity SCR_TerrainMeshEntity SCR_TestRaycaster SCR_UISoundEntity SCR_UnitDisplayManager SCR_VirtualAreaEntity SCR_WeaponRackEntity SCR_WeaponRackSlotEntity Screenshot_Autotest ScriptModel AIAutotest CommentEntity EditorCommentEntity MotionAutoTest PawnEntity PawnEntity PawnRelatedEntity PawnRelatedEntity PreviewWorldExample Projectile Projectile SCR_AIDebugVisualization SCR_AISendMessageDebugUI SCR_AddonManager SCR_AirstrikePrototype SCR_BasePrefabSpawner SCR_BasePreviewEntity SCR_BaseTutorialStage SCR_BuildingConfigManagerEntity SCR_CampaignRelayAlternativeSpot SCR_CustomMaterialAnimatorEntity SCR_DebrisBuildingEntity SCR_DoorOpenerEntity SCR_DownloadManager SCR_EditorBaseEntity SCR_EditorImageGeneratorEntity SCR_EditorPingEntity SCR_EditorRestrictionZoneEntity SCR_EditorServerEntity SCR_ExplosionGenerator SCR_FiringRangeController SCR_FiringRangeNetworkEntity SCR_GenericBoxEntity SCR_GridSpawnerEntity SCR_HeatMap_Autotest SCR_JointBaseEntity SCR_JointDummyHolderEntity SCR_LargeDestructibleEntity SCR_MPDestructionManager SCR_MainMenuEntity SCR_MapLocator SCR_MapMarkerEntity SCR_MovingSoundSourceEntity SCR_PopUpNotification SCR_PreviewEntity SCR_RegionIntersectDebrisEntity SCR_RplTestEntity SCR_SectorSpawn SCR_SiteSlotEntity SCR_SlotDisablerEntity SCR_SmallDestructibleEntity SCR_TerrainMeshEntity SCR_TestRaycaster SCR_UISoundEntity SCR_UnitDisplayManager SCR_VirtualAreaEntity SCR_WeaponRackEntity SCR_WeaponRackSlotEntity Screenshot_Autotest ScriptModel

Protected Member Functions

void EOnTouch (IEntity owner, IEntity other, int touchTypesMask)
void EOnInit (IEntity owner)
void EOnVisible (IEntity owner, int frameNumber)
void EOnFrame (IEntity owner, float timeSlice)
void EOnPostFrame (IEntity owner, float timeSlice)
void EOnAnimEvent (IEntity owner, int type, int slot)
void EOnSimulate (IEntity owner, float timeSlice)
void EOnPostSimulate (IEntity owner, float timeSlice)
void EOnJointBreak (IEntity owner, IEntity other)
void EOnPhysicsMove (IEntity owner)
void EOnContact (IEntity owner, IEntity other, Contact contact)
void EOnPhysicsActive (IEntity owner, bool activeState)
void EOnFixedFrame (IEntity owner, float timeSlice)
void EOnFixedPostFrame (IEntity owner, float timeSlice)
void EOnUser0 (IEntity other, int extra)
 EntityEvent.EV_USER+0.
void EOnUser1 (IEntity other, int extra)
 EntityEvent.EV_USER+1.
void EOnUser2 (IEntity other, int extra)
 EntityEvent.EV_USER+2.
void EOnUser3 (IEntity other, int extra)
 EntityEvent.EV_USER+3.
void EOnUser4 (IEntity other, int extra)
 EntityEvent.EV_USER+4.
void IEntity (IEntitySource src, IEntity parent)
 protected script Constructor
proto external EntityID GetID ()
proto external IEntity GetParent ()
proto external IEntity GetRootParent ()
proto external IEntity GetChildren ()
proto external IEntity GetSibling ()
proto external VObject GetVObject ()
 Returns visual object set to this Entity. No reference is added.
proto external EntityPrefabData GetPrefabData ()
proto external EntityComponentPrefabData FindComponentData (typename typeName)
proto external BaseWorld GetWorld ()
proto external void SetFixedLOD (int lod)
 Set fixed LOD. Use -1 for non-fixed LOD.
proto external void GetTransform (out vector mat[])
proto external void GetWorldTransform (out vector mat[])
 See IEntity::GetTransform.
proto external void GetLocalTransform (out vector mat[])
 See IEntity::GetTransform.
proto external void ComputeLocalTransform (out vector mat[])
proto external vector VectorToParent (vector vec)
proto external vector CoordToParent (vector coord)
proto external vector VectorToLocal (vector vec)
proto external vector CoordToLocal (vector coord)
proto external vector GetYawPitchRoll ()
proto external void SetYawPitchRoll (vector angles)
proto external vector GetWorldTransformAxis (int axis)
 See IEntity::GetTransformAxis.
proto external vector GetTransformAxis (int axis)
 See IEntity::GetTransformAxis.
proto external vector GetLocalTransformAxis (int axis)
 See IEntity::GetTransformAxis.
proto external bool SetLocalTransform (vector mat[4])
 See IEntity::SetTransform. Returns false, if there is no change in transformation.
proto external bool SetWorldTransform (vector mat[4])
 See IEntity::SetTransform. Returns false, if there is no change in transformation.
proto external TNodeId GetPivot ()
 Returns pivot ID from hierarchy component.
proto external bool SetTransform (vector mat[4])
proto external vector GetLocalAngles ()
 Same as GetLocalYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
proto external vector GetLocalYawPitchRoll ()
proto external vector GetAngles ()
 Same as GetYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
proto external void SetAngles (vector angles)
 Same as SetYawPitchRoll(), but sets rotation around X, Y and Z axis.
proto external vector GetOrigin ()
proto external void SetOrigin (vector orig)
proto external void SetScale (float scale)
proto external float GetScale ()
proto external void GetBounds (out vector mins, out vector maxs)
proto external void GetWorldBounds (out vector mins, out vector maxs)
proto external volatile void SendEvent (notnull IEntity actor, EntityEvent e, void extra)
 Dynamic event invocation. Parameters are the same as in IEntity::EOnXXXX() methods.
proto external string GetName ()
proto external int SetVComponentFlags (VCFlags flags)
 Sets component flags.
proto external EntityFlags SetFlags (EntityFlags flags, bool recursively=false)
proto external EntityFlags ClearFlags (EntityFlags flags, bool recursively=false)
proto external EntityFlags GetFlags ()
proto external EntityEvent SetEventMask (EntityEvent e)
proto external EntityEvent ClearEventMask (EntityEvent e)
proto external EntityEvent GetEventMask ()
proto external bool IsLoaded ()
proto external bool IsDeleted ()
proto external int Update ()
proto external int AddChild (notnull IEntity child, TNodeId pivot, EAddChildFlags flags=EAddChildFlags.AUTO_TRANSFORM)
 Add Entity to hierarchy. Pivot is pivot index, or -1 for center of parent.
proto external void RemoveChild (notnull IEntity child, bool keepTransform=false)
 Remove Entity from hierarchy.
proto external void SetName (string name)
proto external int SetCameraMask (int mask)
 Sets visibility mask for cameras, where Entity will be rendered.
proto external Physics GetPhysics ()
proto external Particles GetParticles ()
proto external Animation GetAnimation ()
proto external int Animate (float speed, int loop)
 Updates animation (either xob, or particle, whatever).
proto external int AnimateEx (float speed, int loop, out vector lin, out vector ang)
 Updates animation (either xob, or particle, whatever).
proto external void SetBone (TNodeId bone, vector angles, vector trans, float scale)
proto external bool SetBoneMatrix (TNodeId bone, vector mat[4])
proto external bool GetBoneMatrix (TNodeId bone, out vector mat[4])
proto external TNodeId GetBoneIndex (string boneName)
proto external void GetBoneNames (out notnull array< string > boneNames)
proto external bool GetBoneLocalMatrix (TNodeId bone, out vector mat[4])
proto external Managed FindComponent (typename typeName)
proto external int FindComponents (typename typeName, notnull array< Managed > outComponents)
void EOnTouch (IEntity owner, IEntity other, int touchTypesMask)
void EOnInit (IEntity owner)
void EOnVisible (IEntity owner, int frameNumber)
void EOnFrame (IEntity owner, float timeSlice)
void EOnPostFrame (IEntity owner, float timeSlice)
void EOnAnimEvent (IEntity owner, int type, int slot)
void EOnSimulate (IEntity owner, float timeSlice)
void EOnPostSimulate (IEntity owner, float timeSlice)
void EOnJointBreak (IEntity owner, IEntity other)
void EOnPhysicsMove (IEntity owner)
void EOnContact (IEntity owner, IEntity other, Contact contact)
void EOnPhysicsActive (IEntity owner, bool activeState)
void EOnFixedFrame (IEntity owner, float timeSlice)
void EOnFixedPostFrame (IEntity owner, float timeSlice)
void EOnUser0 (IEntity other, int extra)
 EntityEvent.EV_USER+0.
void EOnUser1 (IEntity other, int extra)
 EntityEvent.EV_USER+1.
void EOnUser2 (IEntity other, int extra)
 EntityEvent.EV_USER+2.
void EOnUser3 (IEntity other, int extra)
 EntityEvent.EV_USER+3.
void EOnUser4 (IEntity other, int extra)
 EntityEvent.EV_USER+4.
void IEntity (IEntitySource src, IEntity parent)
 protected script Constructor
proto external EntityID GetID ()
proto external IEntity GetParent ()
proto external IEntity GetRootParent ()
proto external IEntity GetChildren ()
proto external IEntity GetSibling ()
proto external VObject GetVObject ()
 Returns visual object set to this Entity. No reference is added.
proto external EntityPrefabData GetPrefabData ()
proto external EntityComponentPrefabData FindComponentData (typename typeName)
proto external BaseWorld GetWorld ()
proto external void SetFixedLOD (int lod)
 Set fixed LOD. Use -1 for non-fixed LOD.
proto external void GetTransform (out vector mat[])
proto external void GetWorldTransform (out vector mat[])
 See IEntity::GetTransform.
proto external void GetLocalTransform (out vector mat[])
 See IEntity::GetTransform.
proto external void ComputeLocalTransform (out vector mat[])
proto external vector VectorToParent (vector vec)
proto external vector CoordToParent (vector coord)
proto external vector VectorToLocal (vector vec)
proto external vector CoordToLocal (vector coord)
proto external vector GetYawPitchRoll ()
proto external void SetYawPitchRoll (vector angles)
proto external vector GetWorldTransformAxis (int axis)
 See IEntity::GetTransformAxis.
proto external vector GetTransformAxis (int axis)
 See IEntity::GetTransformAxis.
proto external vector GetLocalTransformAxis (int axis)
 See IEntity::GetTransformAxis.
proto external bool SetLocalTransform (vector mat[4])
 See IEntity::SetTransform. Returns false, if there is no change in transformation.
proto external bool SetWorldTransform (vector mat[4])
 See IEntity::SetTransform. Returns false, if there is no change in transformation.
proto external TNodeId GetPivot ()
 Returns pivot ID from hierarchy component.
proto external bool SetTransform (vector mat[4])
proto external vector GetLocalAngles ()
 Same as GetLocalYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
proto external vector GetLocalYawPitchRoll ()
proto external vector GetAngles ()
 Same as GetYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
proto external void SetAngles (vector angles)
 Same as SetYawPitchRoll(), but sets rotation around X, Y and Z axis.
proto external vector GetOrigin ()
proto external void SetOrigin (vector orig)
proto external void SetScale (float scale)
proto external float GetScale ()
proto external void GetBounds (out vector mins, out vector maxs)
proto external void GetWorldBounds (out vector mins, out vector maxs)
proto external volatile void SendEvent (notnull IEntity actor, EntityEvent e, void extra)
 Dynamic event invocation. Parameters are the same as in IEntity::EOnXXXX() methods.
proto external string GetName ()
proto external int SetVComponentFlags (VCFlags flags)
 Sets component flags.
proto external EntityFlags SetFlags (EntityFlags flags, bool recursively=false)
proto external EntityFlags ClearFlags (EntityFlags flags, bool recursively=false)
proto external EntityFlags GetFlags ()
proto external EntityEvent SetEventMask (EntityEvent e)
proto external EntityEvent ClearEventMask (EntityEvent e)
proto external EntityEvent GetEventMask ()
proto external bool IsLoaded ()
proto external bool IsDeleted ()
proto external int Update ()
proto external int AddChild (notnull IEntity child, TNodeId pivot, EAddChildFlags flags=EAddChildFlags.AUTO_TRANSFORM)
 Add Entity to hierarchy. Pivot is pivot index, or -1 for center of parent.
proto external void RemoveChild (notnull IEntity child, bool keepTransform=false)
 Remove Entity from hierarchy.
proto external void SetName (string name)
proto external int SetCameraMask (int mask)
 Sets visibility mask for cameras, where Entity will be rendered.
proto external Physics GetPhysics ()
proto external Particles GetParticles ()
proto external Animation GetAnimation ()
proto external int Animate (float speed, int loop)
 Updates animation (either xob, or particle, whatever).
proto external int AnimateEx (float speed, int loop, out vector lin, out vector ang)
 Updates animation (either xob, or particle, whatever).
proto external void SetBone (TNodeId bone, vector angles, vector trans, float scale)
proto external bool SetBoneMatrix (TNodeId bone, vector mat[4])
proto external bool GetBoneMatrix (TNodeId bone, out vector mat[4])
proto external TNodeId GetBoneIndex (string boneName)
proto external void GetBoneNames (out notnull array< string > boneNames)
proto external bool GetBoneLocalMatrix (TNodeId bone, out vector mat[4])
proto external Managed FindComponent (typename typeName)
proto external int FindComponents (typename typeName, notnull array< Managed > outComponents)

Detailed Description

Definition at line 12 of file IEntity.c.

Constructor & Destructor Documentation

◆ IEntity() [1/2]

void IEntity::IEntity ( IEntitySource src,
IEntity parent )
protected

protected script Constructor

◆ IEntity() [2/2]

void IEntity::IEntity ( IEntitySource src,
IEntity parent )
protected

protected script Constructor

Member Function Documentation

◆ AddChild() [1/2]

proto external int IEntity::AddChild ( notnull IEntity child,
TNodeId pivot,
EAddChildFlags flags = EAddChildFlags.AUTO_TRANSFORM )
protected

Add Entity to hierarchy. Pivot is pivot index, or -1 for center of parent.

◆ AddChild() [2/2]

proto external int IEntity::AddChild ( notnull IEntity child,
TNodeId pivot,
EAddChildFlags flags = EAddChildFlags.AUTO_TRANSFORM )
protected

Add Entity to hierarchy. Pivot is pivot index, or -1 for center of parent.

◆ Animate() [1/2]

proto external int IEntity::Animate ( float speed,
int loop )
protected

Updates animation (either xob, or particle, whatever).

◆ Animate() [2/2]

proto external int IEntity::Animate ( float speed,
int loop )
protected

Updates animation (either xob, or particle, whatever).

◆ AnimateEx() [1/2]

proto external int IEntity::AnimateEx ( float speed,
int loop,
out vector lin,
out vector ang )
protected

Updates animation (either xob, or particle, whatever).

◆ AnimateEx() [2/2]

proto external int IEntity::AnimateEx ( float speed,
int loop,
out vector lin,
out vector ang )
protected

Updates animation (either xob, or particle, whatever).

◆ ClearEventMask() [1/2]

proto external EntityEvent IEntity::ClearEventMask ( EntityEvent e)
protected

Clears event mask.

Man player = g_Game.GetPlayer();
player.SetEventMask(EntityEvent.VISIBLE );
Print( player.GetEventMask() );
player.ClearEventMask(EntityEvent.ALL );
Print( player.GetEventMask() );
>> 128
>> 0
Game g_Game
Game singleton instance.
Definition gameLib.c:13
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
EntityEvent
Various entity events.
Definition EntityEvent.c:14
Parameters
eevent mask
Returns
event mask

◆ ClearEventMask() [2/2]

proto external EntityEvent IEntity::ClearEventMask ( EntityEvent e)
protected

Clears event mask.

Man player = g_Game.GetPlayer();
player.SetEventMask(EntityEvent.VISIBLE );
Print( player.GetEventMask() );
player.ClearEventMask(EntityEvent.ALL );
Print( player.GetEventMask() );
>> 128
>> 0
Parameters
eevent mask
Returns
event mask

◆ ClearFlags() [1/2]

proto external EntityFlags IEntity::ClearFlags ( EntityFlags flags,
bool recursively = false )
protected

Clear Entity flags. Returns cleared flags.

Man player = g_Game.GetPlayer();
player.ClearFlags(EntityFlags.VISIBLE|EntityFlags.TRACEABLE );
Print( player.GetFlags() );
>> 1610612744
EntityFlags
Various entity flags.
Definition EntityFlags.c:14
Parameters
flagsFlags to be set
recursivelyFlags will be recursively applied to children of hierarchy too
Returns
cleared flags

◆ ClearFlags() [2/2]

proto external EntityFlags IEntity::ClearFlags ( EntityFlags flags,
bool recursively = false )
protected

Clear Entity flags. Returns cleared flags.

Man player = g_Game.GetPlayer();
player.ClearFlags(EntityFlags.VISIBLE|EntityFlags.TRACEABLE );
Print( player.GetFlags() );
>> 1610612744
Parameters
flagsFlags to be set
recursivelyFlags will be recursively applied to children of hierarchy too
Returns
cleared flags

◆ ComputeLocalTransform() [1/2]

proto external void IEntity::ComputeLocalTransform ( out vector mat[])
protected

Returns combined local transformation of parent's pivot attachment and local transform

◆ ComputeLocalTransform() [2/2]

proto external void IEntity::ComputeLocalTransform ( out vector mat[])
protected

Returns combined local transformation of parent's pivot attachment and local transform

◆ CoordToLocal() [1/2]

proto external vector IEntity::CoordToLocal ( vector coord)
protected

Transforms world space position to local space.

Man player = g_Game.GetPlayer();
Print( player.CoordToLocal("500 10 155") );
>> <15254,-54.2004,8745.53>
Parameters
coordworld space position to transform
Returns
position in local space

◆ CoordToLocal() [2/2]

proto external vector IEntity::CoordToLocal ( vector coord)
protected

Transforms world space position to local space.

Man player = g_Game.GetPlayer();
Print( player.CoordToLocal("500 10 155") );
>> <15254,-54.2004,8745.53>
Parameters
coordworld space position to transform
Returns
position in local space

◆ CoordToParent() [1/2]

proto external vector IEntity::CoordToParent ( vector coord)
protected

Transforms local position to parent(world) space.

Man player = g_Game.GetPlayer();
Print( player.CoordToParent("1 2 3") );
>> <2549,17.6478,2857>
Parameters
coordlocal position to transform
Returns
position in parent space

◆ CoordToParent() [2/2]

proto external vector IEntity::CoordToParent ( vector coord)
protected

Transforms local position to parent(world) space.

Man player = g_Game.GetPlayer();
Print( player.CoordToParent("1 2 3") );
>> <2549,17.6478,2857>
Parameters
coordlocal position to transform
Returns
position in parent space

◆ EOnAnimEvent() [1/2]

void IEntity::EOnAnimEvent ( IEntity owner,
int type,
int slot )
protected

Event from animation system.

Parameters
ownerThe owner entity
type
slot

◆ EOnAnimEvent() [2/2]

void IEntity::EOnAnimEvent ( IEntity owner,
int type,
int slot )
protected

Event from animation system.

Parameters
ownerThe owner entity
type
slot

◆ EOnContact() [1/2]

void IEntity::EOnContact ( IEntity owner,
IEntity other,
Contact contact )
protected

Event when physics engine registered contact with other RigidBody.

Parameters
ownerThe owner entity
otherOther Entity who contacted us
contactStructure describing the contact

◆ EOnContact() [2/2]

void IEntity::EOnContact ( IEntity owner,
IEntity other,
Contact contact )
protected

Event when physics engine registered contact with other RigidBody.

Parameters
ownerThe owner entity
otherOther Entity who contacted us
contactStructure describing the contact

◆ EOnFixedFrame() [1/2]

void IEntity::EOnFixedFrame ( IEntity owner,
float timeSlice )
protected

Event every fixed frame.

Parameters
ownerThe owner entity
timeSliceFixed time step

◆ EOnFixedFrame() [2/2]

void IEntity::EOnFixedFrame ( IEntity owner,
float timeSlice )
protected

Event every fixed frame.

Parameters
ownerThe owner entity
timeSliceFixed time step

◆ EOnFixedPostFrame() [1/2]

void IEntity::EOnFixedPostFrame ( IEntity owner,
float timeSlice )
protected

Event after physics update every fixed frame.

Parameters
ownerThe owner entity
timeSliceFixed time step

◆ EOnFixedPostFrame() [2/2]

void IEntity::EOnFixedPostFrame ( IEntity owner,
float timeSlice )
protected

Event after physics update every fixed frame.

Parameters
ownerThe owner entity
timeSliceFixed time step

◆ EOnFrame() [1/2]

void IEntity::EOnFrame ( IEntity owner,
float timeSlice )
protected

Event every frame.

Parameters
ownerThe owner entity
timeSliceTime passed since last frame

◆ EOnFrame() [2/2]

void IEntity::EOnFrame ( IEntity owner,
float timeSlice )
protected

Event every frame.

Parameters
ownerThe owner entity
timeSliceTime passed since last frame

◆ EOnInit() [1/2]

void IEntity::EOnInit ( IEntity owner)
protected

Event after entity is allocated and initialized.

Parameters
ownerThe owner entity

◆ EOnInit() [2/2]

void IEntity::EOnInit ( IEntity owner)
protected

Event after entity is allocated and initialized.

Parameters
ownerThe owner entity

◆ EOnJointBreak() [1/2]

void IEntity::EOnJointBreak ( IEntity owner,
IEntity other )
protected

Event when joint attached to RigidBody of this entity is broken.

Parameters
ownerThe owner entity
otherOther Entity attached to the joint

◆ EOnJointBreak() [2/2]

void IEntity::EOnJointBreak ( IEntity owner,
IEntity other )
protected

Event when joint attached to RigidBody of this entity is broken.

Parameters
ownerThe owner entity
otherOther Entity attached to the joint

◆ EOnPhysicsActive() [1/2]

void IEntity::EOnPhysicsActive ( IEntity owner,
bool activeState )
protected

Event when a RigidBody active state is changed between consecutive fixed steps

Parameters
ownerThe owner entity

◆ EOnPhysicsActive() [2/2]

void IEntity::EOnPhysicsActive ( IEntity owner,
bool activeState )
protected

Event when a RigidBody active state is changed between consecutive fixed steps

Parameters
ownerThe owner entity

◆ EOnPhysicsMove() [1/2]

void IEntity::EOnPhysicsMove ( IEntity owner)
protected

Event when physics engine has moved with this Entity.

Parameters
ownerThe owner entity

◆ EOnPhysicsMove() [2/2]

void IEntity::EOnPhysicsMove ( IEntity owner)
protected

Event when physics engine has moved with this Entity.

Parameters
ownerThe owner entity

◆ EOnPostFrame() [1/2]

void IEntity::EOnPostFrame ( IEntity owner,
float timeSlice )
protected

Event after physics update.

Parameters
ownerThe owner entity
timeSliceTime passed since last frame

◆ EOnPostFrame() [2/2]

void IEntity::EOnPostFrame ( IEntity owner,
float timeSlice )
protected

Event after physics update.

Parameters
ownerThe owner entity
timeSliceTime passed since last frame

◆ EOnPostSimulate() [1/2]

void IEntity::EOnPostSimulate ( IEntity owner,
float timeSlice )
protected

Event after every physics fixed step (can be multiple calls per engine update)

Parameters
ownerThe owner entity
timeSliceTime slice of physics fixed step

◆ EOnPostSimulate() [2/2]

void IEntity::EOnPostSimulate ( IEntity owner,
float timeSlice )
protected

Event after every physics fixed step (can be multiple calls per engine update)

Parameters
ownerThe owner entity
timeSliceTime slice of physics fixed step

◆ EOnSimulate() [1/2]

void IEntity::EOnSimulate ( IEntity owner,
float timeSlice )
protected

Event before every physics fixed step (can be multiple calls per engine update)

Parameters
ownerThe owner entity
timeSliceTime slice of physics fixed step

◆ EOnSimulate() [2/2]

void IEntity::EOnSimulate ( IEntity owner,
float timeSlice )
protected

Event before every physics fixed step (can be multiple calls per engine update)

Parameters
ownerThe owner entity
timeSliceTime slice of physics fixed step

◆ EOnTouch() [1/2]

void IEntity::EOnTouch ( IEntity owner,
IEntity other,
int touchTypesMask )
protected

Event when touched by other entity.

Note
You need to have TouchComponent in entity to receive this event.
Parameters
ownerThe owner entity
otherEntity who touched us
touchTypesMaskBitmask of touch types TODO

◆ EOnTouch() [2/2]

void IEntity::EOnTouch ( IEntity owner,
IEntity other,
int touchTypesMask )
protected

Event when touched by other entity.

Note
You need to have TouchComponent in entity to receive this event.
Parameters
ownerThe owner entity
otherEntity who touched us
touchTypesMaskBitmask of touch types TODO

◆ EOnUser0() [1/2]

void IEntity::EOnUser0 ( IEntity other,
int extra )
protected

EntityEvent.EV_USER+0.

◆ EOnUser0() [2/2]

void IEntity::EOnUser0 ( IEntity other,
int extra )
protected

EntityEvent.EV_USER+0.

◆ EOnUser1() [1/2]

void IEntity::EOnUser1 ( IEntity other,
int extra )
protected

EntityEvent.EV_USER+1.

◆ EOnUser1() [2/2]

void IEntity::EOnUser1 ( IEntity other,
int extra )
protected

EntityEvent.EV_USER+1.

◆ EOnUser2() [1/2]

void IEntity::EOnUser2 ( IEntity other,
int extra )
protected

EntityEvent.EV_USER+2.

◆ EOnUser2() [2/2]

void IEntity::EOnUser2 ( IEntity other,
int extra )
protected

EntityEvent.EV_USER+2.

◆ EOnUser3() [1/2]

void IEntity::EOnUser3 ( IEntity other,
int extra )
protected

EntityEvent.EV_USER+3.

◆ EOnUser3() [2/2]

void IEntity::EOnUser3 ( IEntity other,
int extra )
protected

EntityEvent.EV_USER+3.

◆ EOnUser4() [1/2]

void IEntity::EOnUser4 ( IEntity other,
int extra )
protected

EntityEvent.EV_USER+4.

◆ EOnUser4() [2/2]

void IEntity::EOnUser4 ( IEntity other,
int extra )
protected

EntityEvent.EV_USER+4.

◆ EOnVisible() [1/2]

void IEntity::EOnVisible ( IEntity owner,
int frameNumber )
protected

Event when we are visible.

Parameters
ownerThe owner entity
frameNumberFrame number

◆ EOnVisible() [2/2]

void IEntity::EOnVisible ( IEntity owner,
int frameNumber )
protected

Event when we are visible.

Parameters
ownerThe owner entity
frameNumberFrame number

◆ FindComponent() [1/2]

proto external Managed IEntity::FindComponent ( typename typeName )
protected

Finds first occurance of the coresponding component.

Parameters
typeNametype of the component

◆ FindComponent() [2/2]

proto external Managed IEntity::FindComponent ( typename typeName )
protected

Finds first occurance of the coresponding component.

Parameters
typeNametype of the component

◆ FindComponentData() [1/2]

proto external EntityComponentPrefabData IEntity::FindComponentData ( typename typeName )
protected

◆ FindComponentData() [2/2]

proto external EntityComponentPrefabData IEntity::FindComponentData ( typename typeName )
protected

◆ FindComponents() [1/2]

proto external int IEntity::FindComponents ( typename typeName ,
notnull array< Managed > outComponents )
protected

Finds all occurances of the coresponding component.

Parameters
typeNametype of the component
outComponentsarray to fill with selected components

◆ FindComponents() [2/2]

proto external int IEntity::FindComponents ( typename typeName ,
notnull array< Managed > outComponents )
protected

Finds all occurances of the coresponding component.

Parameters
typeNametype of the component
outComponentsarray to fill with selected components

◆ GetAngles() [1/2]

proto external vector IEntity::GetAngles ( )
protected

Same as GetYawPitchRoll(), but returns rotation vector around X, Y and Z axis.

◆ GetAngles() [2/2]

proto external vector IEntity::GetAngles ( )
protected

Same as GetYawPitchRoll(), but returns rotation vector around X, Y and Z axis.

◆ GetAnimation() [1/2]

proto external Animation IEntity::GetAnimation ( )
protected

◆ GetAnimation() [2/2]

proto external Animation IEntity::GetAnimation ( )
protected

◆ GetBoneIndex() [1/2]

proto external TNodeId IEntity::GetBoneIndex ( string boneName)
protected

◆ GetBoneIndex() [2/2]

proto external TNodeId IEntity::GetBoneIndex ( string boneName)
protected

◆ GetBoneLocalMatrix() [1/2]

proto external bool IEntity::GetBoneLocalMatrix ( TNodeId bone,
out vector mat[4] )
protected

◆ GetBoneLocalMatrix() [2/2]

proto external bool IEntity::GetBoneLocalMatrix ( TNodeId bone,
out vector mat[4] )
protected

◆ GetBoneMatrix() [1/2]

proto external bool IEntity::GetBoneMatrix ( TNodeId bone,
out vector mat[4] )
protected

◆ GetBoneMatrix() [2/2]

proto external bool IEntity::GetBoneMatrix ( TNodeId bone,
out vector mat[4] )
protected

◆ GetBoneNames() [1/2]

proto external void IEntity::GetBoneNames ( out notnull array< string > boneNames)
protected

◆ GetBoneNames() [2/2]

proto external void IEntity::GetBoneNames ( out notnull array< string > boneNames)
protected

◆ GetBounds() [1/2]

proto external void IEntity::GetBounds ( out vector mins,
out vector maxs )
protected

Returns local bounding box of model on Entity.

Man player = g_Game.GetPlayer();
vector mins, maxs;
player.GetBounds(mins, maxs );
Print( mins );
Print( maxs );
>> <0,0,0>
>> <0,0,0>
Parameters
[out]minsminimum point of bounding box
[out]maxsmaximum point of bounding box

◆ GetBounds() [2/2]

proto external void IEntity::GetBounds ( out vector mins,
out vector maxs )
protected

Returns local bounding box of model on Entity.

Man player = g_Game.GetPlayer();
vector mins, maxs;
player.GetBounds(mins, maxs );
Print( mins );
Print( maxs );
>> <0,0,0>
>> <0,0,0>
Parameters
[out]minsminimum point of bounding box
[out]maxsmaximum point of bounding box

◆ GetChildren() [1/2]

proto external IEntity IEntity::GetChildren ( )
protected

Returns first child from this level of hierarchy if there is any.

Returns
Pointer to child entity, or nullptr

◆ GetChildren() [2/2]

proto external IEntity IEntity::GetChildren ( )
protected

Returns first child from this level of hierarchy if there is any.

Returns
Pointer to child entity, or nullptr

◆ GetEventMask() [1/2]

proto external EntityEvent IEntity::GetEventMask ( )
protected

Returns current event mask.

Man player = g_Game.GetPlayer();
Print( player.GetEventMask() );
>> 0
Returns
current event mask

◆ GetEventMask() [2/2]

proto external EntityEvent IEntity::GetEventMask ( )
protected

Returns current event mask.

Man player = g_Game.GetPlayer();
Print( player.GetEventMask() );
>> 0
Returns
current event mask

◆ GetFlags() [1/2]

proto external EntityFlags IEntity::GetFlags ( )
protected

Returns Entity flags.

Man player = g_Game.GetPlayer();
Print( player.GetFlags() );
>> 1610612745
Returns
Entity flags

◆ GetFlags() [2/2]

proto external EntityFlags IEntity::GetFlags ( )
protected

Returns Entity flags.

Man player = g_Game.GetPlayer();
Print( player.GetFlags() );
>> 1610612745
Returns
Entity flags

◆ GetID() [1/2]

proto external EntityID IEntity::GetID ( )
protected

Return unique entity ID.

ItemBase apple = g_Game.CreateObject( "FruitApple", String2Vector("0 10 0"), false );
Print( apple.GetID() );
>> 0

◆ GetID() [2/2]

proto external EntityID IEntity::GetID ( )
protected

Return unique entity ID.

ItemBase apple = g_Game.CreateObject( "FruitApple", String2Vector("0 10 0"), false );
Print( apple.GetID() );
>> 0

◆ GetLocalAngles() [1/2]

proto external vector IEntity::GetLocalAngles ( )
protected

Same as GetLocalYawPitchRoll(), but returns rotation vector around X, Y and Z axis.

◆ GetLocalAngles() [2/2]

proto external vector IEntity::GetLocalAngles ( )
protected

Same as GetLocalYawPitchRoll(), but returns rotation vector around X, Y and Z axis.

◆ GetLocalTransform() [1/2]

proto external void IEntity::GetLocalTransform ( out vector mat[])
protected

◆ GetLocalTransform() [2/2]

proto external void IEntity::GetLocalTransform ( out vector mat[])
protected

◆ GetLocalTransformAxis() [1/2]

proto external vector IEntity::GetLocalTransformAxis ( int axis)
protected

◆ GetLocalTransformAxis() [2/2]

proto external vector IEntity::GetLocalTransformAxis ( int axis)
protected

◆ GetLocalYawPitchRoll() [1/2]

proto external vector IEntity::GetLocalYawPitchRoll ( )
protected

Returns local orientation when it's in hierarchy (Yaw, Pitch, Roll).

Man player = g_Game.GetPlayer();
Print( player.GetLocalYawPitchRoll() );
>> <180,-57.2585,180>
Returns
local orientation

◆ GetLocalYawPitchRoll() [2/2]

proto external vector IEntity::GetLocalYawPitchRoll ( )
protected

Returns local orientation when it's in hierarchy (Yaw, Pitch, Roll).

Man player = g_Game.GetPlayer();
Print( player.GetLocalYawPitchRoll() );
>> <180,-57.2585,180>
Returns
local orientation

◆ GetName() [1/2]

proto external string IEntity::GetName ( )
protected

◆ GetName() [2/2]

proto external string IEntity::GetName ( )
protected

◆ GetOrigin() [1/2]

proto external vector IEntity::GetOrigin ( )
protected

Returns origin of Entity.

Man player = g_Game.GetPlayer();
Print( player.GetOrigin() );
>> <2577.02,15.6837,2924.27>
Returns
entity origin

◆ GetOrigin() [2/2]

proto external vector IEntity::GetOrigin ( )
protected

Returns origin of Entity.

Man player = g_Game.GetPlayer();
Print( player.GetOrigin() );
>> <2577.02,15.6837,2924.27>
Returns
entity origin

◆ GetParent() [1/2]

proto external IEntity IEntity::GetParent ( )
protected

Returns parent of this entity (entity on upper level of hierarchy).

Returns
Pointer to parent entity, or nullptr, when we are not child.

◆ GetParent() [2/2]

proto external IEntity IEntity::GetParent ( )
protected

Returns parent of this entity (entity on upper level of hierarchy).

Returns
Pointer to parent entity, or nullptr, when we are not child.

◆ GetParticles() [1/2]

proto external Particles IEntity::GetParticles ( )
protected

◆ GetParticles() [2/2]

proto external Particles IEntity::GetParticles ( )
protected

◆ GetPhysics() [1/2]

proto external Physics IEntity::GetPhysics ( )
protected

◆ GetPhysics() [2/2]

proto external Physics IEntity::GetPhysics ( )
protected

◆ GetPivot() [1/2]

proto external TNodeId IEntity::GetPivot ( )
protected

Returns pivot ID from hierarchy component.

◆ GetPivot() [2/2]

proto external TNodeId IEntity::GetPivot ( )
protected

Returns pivot ID from hierarchy component.

◆ GetPrefabData() [1/2]

proto external EntityPrefabData IEntity::GetPrefabData ( )
protected

◆ GetPrefabData() [2/2]

proto external EntityPrefabData IEntity::GetPrefabData ( )
protected

◆ GetRootParent() [1/2]

proto external IEntity IEntity::GetRootParent ( )
protected

Returns top-parent of this entity.

Returns
Pointer to root entity, or self, when we are not child.

◆ GetRootParent() [2/2]

proto external IEntity IEntity::GetRootParent ( )
protected

Returns top-parent of this entity.

Returns
Pointer to root entity, or self, when we are not child.

◆ GetScale() [1/2]

proto external float IEntity::GetScale ( )
protected

◆ GetScale() [2/2]

proto external float IEntity::GetScale ( )
protected

◆ GetSibling() [1/2]

proto external IEntity IEntity::GetSibling ( )
protected

Returns next sibling of this entity (next entity on this level of hierarchy).

Returns
Pointer to sibling entity, or nullptr

◆ GetSibling() [2/2]

proto external IEntity IEntity::GetSibling ( )
protected

Returns next sibling of this entity (next entity on this level of hierarchy).

Returns
Pointer to sibling entity, or nullptr

◆ GetTransform() [1/2]

proto external void IEntity::GetTransform ( out vector mat[])
protected

Returns world transformation of Entity. It returns only as many vectors as is array length.

Man player = g_Game.GetPlayer();
vector mat[4];
player.GetTransform(mat);
Print( mat );
>> <0.989879,-0,0.141916>,<0,1,0>,<-0.141916,0,0.989879>,<2545.08,15.6754,2867.49>
Parameters
matvector[1...4] matrix to be get

◆ GetTransform() [2/2]

proto external void IEntity::GetTransform ( out vector mat[])
protected

Returns world transformation of Entity. It returns only as many vectors as is array length.

Man player = g_Game.GetPlayer();
vector mat[4];
player.GetTransform(mat);
Print( mat );
>> <0.989879,-0,0.141916>,<0,1,0>,<-0.141916,0,0.989879>,<2545.08,15.6754,2867.49>
Parameters
matvector[1...4] matrix to be get

◆ GetTransformAxis() [1/2]

proto external vector IEntity::GetTransformAxis ( int axis)
protected

◆ GetTransformAxis() [2/2]

proto external vector IEntity::GetTransformAxis ( int axis)
protected

◆ GetVObject() [1/2]

proto external VObject IEntity::GetVObject ( )
protected

Returns visual object set to this Entity. No reference is added.

◆ GetVObject() [2/2]

proto external VObject IEntity::GetVObject ( )
protected

Returns visual object set to this Entity. No reference is added.

◆ GetWorld() [1/2]

proto external BaseWorld IEntity::GetWorld ( )
protected

◆ GetWorld() [2/2]

proto external BaseWorld IEntity::GetWorld ( )
protected

◆ GetWorldBounds() [1/2]

proto external void IEntity::GetWorldBounds ( out vector mins,
out vector maxs )
protected

Returns quantized world-bound-box of Entity.

Man player = g_Game.GetPlayer();
vector mins, maxs;
player.GetWorldBounds( mins, maxs );
Print( mins );
Print( maxs );
>> <2547.2,15.5478,2852.85>
>> <2548.8,17.5478,2855.05>
Parameters
[out]minsminimum point of bounding box
[out]maxsmaximum point of bounding box

◆ GetWorldBounds() [2/2]

proto external void IEntity::GetWorldBounds ( out vector mins,
out vector maxs )
protected

Returns quantized world-bound-box of Entity.

Man player = g_Game.GetPlayer();
vector mins, maxs;
player.GetWorldBounds( mins, maxs );
Print( mins );
Print( maxs );
>> <2547.2,15.5478,2852.85>
>> <2548.8,17.5478,2855.05>
Parameters
[out]minsminimum point of bounding box
[out]maxsmaximum point of bounding box

◆ GetWorldTransform() [1/2]

proto external void IEntity::GetWorldTransform ( out vector mat[])
protected

◆ GetWorldTransform() [2/2]

proto external void IEntity::GetWorldTransform ( out vector mat[])
protected

◆ GetWorldTransformAxis() [1/2]

proto external vector IEntity::GetWorldTransformAxis ( int axis)
protected

◆ GetWorldTransformAxis() [2/2]

proto external vector IEntity::GetWorldTransformAxis ( int axis)
protected

◆ GetYawPitchRoll() [1/2]

proto external vector IEntity::GetYawPitchRoll ( )
protected

Returns orientation of Entity in world space (Yaw, Pitch, Roll).

Man player = g_Game.GetPlayer();
Print( player.GetYawPitchRoll() );
>> <180,-76.5987,180>
Returns
entity orientation

◆ GetYawPitchRoll() [2/2]

proto external vector IEntity::GetYawPitchRoll ( )
protected

Returns orientation of Entity in world space (Yaw, Pitch, Roll).

Man player = g_Game.GetPlayer();
Print( player.GetYawPitchRoll() );
>> <180,-76.5987,180>
Returns
entity orientation

◆ IsDeleted() [1/2]

proto external bool IEntity::IsDeleted ( )
protected
Returns
true if entity was deleted (entity pointer valid until the end of the frame).

◆ IsDeleted() [2/2]

proto external bool IEntity::IsDeleted ( )
protected
Returns
true if entity was deleted (entity pointer valid until the end of the frame).

◆ IsLoaded() [1/2]

proto external bool IEntity::IsLoaded ( )
protected
Returns
true when entity is loaded from map, false when dynamically spawned.

◆ IsLoaded() [2/2]

proto external bool IEntity::IsLoaded ( )
protected
Returns
true when entity is loaded from map, false when dynamically spawned.

◆ RemoveChild() [1/2]

proto external void IEntity::RemoveChild ( notnull IEntity child,
bool keepTransform = false )
protected

Remove Entity from hierarchy.

◆ RemoveChild() [2/2]

proto external void IEntity::RemoveChild ( notnull IEntity child,
bool keepTransform = false )
protected

Remove Entity from hierarchy.

◆ SendEvent() [1/2]

proto external volatile void IEntity::SendEvent ( notnull IEntity actor,
EntityEvent e,
void extra )
protected

Dynamic event invocation. Parameters are the same as in IEntity::EOnXXXX() methods.

◆ SendEvent() [2/2]

proto external volatile void IEntity::SendEvent ( notnull IEntity actor,
EntityEvent e,
void extra )
protected

Dynamic event invocation. Parameters are the same as in IEntity::EOnXXXX() methods.

◆ SetAngles() [1/2]

proto external void IEntity::SetAngles ( vector angles)
protected

Same as SetYawPitchRoll(), but sets rotation around X, Y and Z axis.

◆ SetAngles() [2/2]

proto external void IEntity::SetAngles ( vector angles)
protected

Same as SetYawPitchRoll(), but sets rotation around X, Y and Z axis.

◆ SetBone() [1/2]

proto external void IEntity::SetBone ( TNodeId bone,
vector angles,
vector trans,
float scale )
protected

◆ SetBone() [2/2]

proto external void IEntity::SetBone ( TNodeId bone,
vector angles,
vector trans,
float scale )
protected

◆ SetBoneMatrix() [1/2]

proto external bool IEntity::SetBoneMatrix ( TNodeId bone,
vector mat[4] )
protected

◆ SetBoneMatrix() [2/2]

proto external bool IEntity::SetBoneMatrix ( TNodeId bone,
vector mat[4] )
protected

◆ SetCameraMask() [1/2]

proto external int IEntity::SetCameraMask ( int mask)
protected

Sets visibility mask for cameras, where Entity will be rendered.

◆ SetCameraMask() [2/2]

proto external int IEntity::SetCameraMask ( int mask)
protected

Sets visibility mask for cameras, where Entity will be rendered.

◆ SetEventMask() [1/2]

proto external EntityEvent IEntity::SetEventMask ( EntityEvent e)
protected

Sets event mask.

Man player = g_Game.GetPlayer();
Print( player.GetEventMask() );
player.SetEventMask( EntityEvent.VISIBLE );
Print( player.GetEventMask() );
>> 0
>> 128
Parameters
eCombined mask of one or more members of EntityEvent enum

◆ SetEventMask() [2/2]

proto external EntityEvent IEntity::SetEventMask ( EntityEvent e)
protected

Sets event mask.

Man player = g_Game.GetPlayer();
Print( player.GetEventMask() );
player.SetEventMask( EntityEvent.VISIBLE );
Print( player.GetEventMask() );
>> 0
>> 128
Parameters
eCombined mask of one or more members of EntityEvent enum

◆ SetFixedLOD() [1/2]

proto external void IEntity::SetFixedLOD ( int lod)
protected

Set fixed LOD. Use -1 for non-fixed LOD.

◆ SetFixedLOD() [2/2]

proto external void IEntity::SetFixedLOD ( int lod)
protected

Set fixed LOD. Use -1 for non-fixed LOD.

◆ SetFlags() [1/2]

proto external EntityFlags IEntity::SetFlags ( EntityFlags flags,
bool recursively = false )
protected

Sets the visual object to this entity. Reference is added and released upon entity destruction.

Parameters
objectHandle to object got by GetObject().
optionsString, dependent on object type. The only one supported for XOB objects:
"$remap 'original material name' 'new material'; [$remap 'another original material name' 'another new material']"
*/ proto external void SetObject(VObject object, string options); /*! Sets Entity flags. It's OR operation, not rewrite. Returns previous flags.
Man player = g_Game.GetPlayer();
player.SetFlags(EntityFlags.VISIBLE|EntityFlags.TRACEABLE );
Print( player.GetFlags() );
>> 1610612747
flagsFlags to be set
recursivelyFlags will be recursively applied to children of hierarchy too
Returns
previous flags

◆ SetFlags() [2/2]

proto external EntityFlags IEntity::SetFlags ( EntityFlags flags,
bool recursively = false )
protected

Sets the visual object to this entity. Reference is added and released upon entity destruction.

Parameters
objectHandle to object got by GetObject().
optionsString, dependent on object type. The only one supported for XOB objects:
"$remap 'original material name' 'new material'; [$remap 'another original material name' 'another new material']"
*/ proto external void SetObject(VObject object, string options); /*! Sets Entity flags. It's OR operation, not rewrite. Returns previous flags.
Man player = g_Game.GetPlayer();
player.SetFlags(EntityFlags.VISIBLE|EntityFlags.TRACEABLE );
Print( player.GetFlags() );
>> 1610612747
flagsFlags to be set
recursivelyFlags will be recursively applied to children of hierarchy too
Returns
previous flags

◆ SetLocalTransform() [1/2]

proto external bool IEntity::SetLocalTransform ( vector mat[4])
protected

See IEntity::SetTransform. Returns false, if there is no change in transformation.

◆ SetLocalTransform() [2/2]

proto external bool IEntity::SetLocalTransform ( vector mat[4])
protected

See IEntity::SetTransform. Returns false, if there is no change in transformation.

◆ SetName() [1/2]

proto external void IEntity::SetName ( string name)
protected

◆ SetName() [2/2]

proto external void IEntity::SetName ( string name)
protected

◆ SetOrigin() [1/2]

proto external void IEntity::SetOrigin ( vector orig)
protected

Sets origin for entity.

Man player = g_Game.GetPlayer();
player.SetOrigin("2550 10 2900" );
Print( player.GetOrigin() );
>> <2550,10,2900>
Parameters
origorigin to be set

◆ SetOrigin() [2/2]

proto external void IEntity::SetOrigin ( vector orig)
protected

Sets origin for entity.

Man player = g_Game.GetPlayer();
player.SetOrigin("2550 10 2900" );
Print( player.GetOrigin() );
>> <2550,10,2900>
Parameters
origorigin to be set

◆ SetScale() [1/2]

proto external void IEntity::SetScale ( float scale)
protected

◆ SetScale() [2/2]

proto external void IEntity::SetScale ( float scale)
protected

◆ SetTransform() [1/2]

proto external bool IEntity::SetTransform ( vector mat[4])
protected

Sets entity world transformation.

vector mat[4];
Math3D.MatrixIdentity( mat )
Man player = g_Game.GetPlayer();
player.SetTransform( mat );
vector outmat[4];
player.GetTransform(outmat );
Print( outmat );
>> <1,0,0>,<0,1,0>,<0,0,1>,<0,0,0>
Parameters
matmatrix to be set

◆ SetTransform() [2/2]

proto external bool IEntity::SetTransform ( vector mat[4])
protected

Sets entity world transformation.

vector mat[4];
Math3D.MatrixIdentity( mat )
Man player = g_Game.GetPlayer();
player.SetTransform( mat );
vector outmat[4];
player.GetTransform(outmat );
Print( outmat );
>> <1,0,0>,<0,1,0>,<0,0,1>,<0,0,0>
Parameters
matmatrix to be set

◆ SetVComponentFlags() [1/2]

proto external int IEntity::SetVComponentFlags ( VCFlags flags)
protected

Sets component flags.

◆ SetVComponentFlags() [2/2]

proto external int IEntity::SetVComponentFlags ( VCFlags flags)
protected

Sets component flags.

◆ SetWorldTransform() [1/2]

proto external bool IEntity::SetWorldTransform ( vector mat[4])
protected

See IEntity::SetTransform. Returns false, if there is no change in transformation.

◆ SetWorldTransform() [2/2]

proto external bool IEntity::SetWorldTransform ( vector mat[4])
protected

See IEntity::SetTransform. Returns false, if there is no change in transformation.

◆ SetYawPitchRoll() [1/2]

proto external void IEntity::SetYawPitchRoll ( vector angles)
protected

Sets angles for entity (Yaw, Pitch, Roll).

Man player = g_Game.GetPlayer();
player.SetYawPitchRoll("180 50 180" );
Print( player.GetYawPitchRoll() );
>> <-180,50,-180>
Parameters
anglesangles to be set

◆ SetYawPitchRoll() [2/2]

proto external void IEntity::SetYawPitchRoll ( vector angles)
protected

Sets angles for entity (Yaw, Pitch, Roll).

Man player = g_Game.GetPlayer();
player.SetYawPitchRoll("180 50 180" );
Print( player.GetYawPitchRoll() );
>> <-180,50,-180>
Parameters
anglesangles to be set

◆ Update() [1/2]

proto external int IEntity::Update ( )
protected

Updates entity state/position. Should be called when you want to manually commit position changes etc before trace methods etc. Entity is updated automatically at the end and the beginning of simulation step, when it has EntityFlags.TFL_ACTIVE flag set.

Returns
Mask with flags:
  • EntityFlags.UPDATE - hierarchy has been updated
  • EntityFlags.UPDATE_MDL - model hierarchy has been updated

◆ Update() [2/2]

proto external int IEntity::Update ( )
protected

Updates entity state/position. Should be called when you want to manually commit position changes etc before trace methods etc. Entity is updated automatically at the end and the beginning of simulation step, when it has EntityFlags.TFL_ACTIVE flag set.

Returns
Mask with flags:
  • EntityFlags.UPDATE - hierarchy has been updated
  • EntityFlags.UPDATE_MDL - model hierarchy has been updated

◆ VectorToLocal() [1/2]

proto external vector IEntity::VectorToLocal ( vector vec)
protected

Transforms world space vector to local space.

Man player = g_Game.GetPlayer();
Print( player.VectorToLocal("2 1 5") );
>> <-0.166849,1,5.38258>
Parameters
vecworld space vector to transform
Returns
local space vector

◆ VectorToLocal() [2/2]

proto external vector IEntity::VectorToLocal ( vector vec)
protected

Transforms world space vector to local space.

Man player = g_Game.GetPlayer();
Print( player.VectorToLocal("2 1 5") );
>> <-0.166849,1,5.38258>
Parameters
vecworld space vector to transform
Returns
local space vector

◆ VectorToParent() [1/2]

proto external vector IEntity::VectorToParent ( vector vec)
protected

Transforms local vector to parent(world) space.

Man player = g_Game.GetPlayer();
Print( player.VectorToParent("1 2 3") );
>> <2.89791,2,1.26575>
Parameters
veclocal space vector to transform
Returns
parent space vector

◆ VectorToParent() [2/2]

proto external vector IEntity::VectorToParent ( vector vec)
protected

Transforms local vector to parent(world) space.

Man player = g_Game.GetPlayer();
Print( player.VectorToParent("1 2 3") );
>> <2.89791,2,1.26575>
Parameters
veclocal space vector to transform
Returns
parent space vector

The documentation for this class was generated from the following file: