111 private void EOnDummy018(
IEntity other,
int extra);
113 private void EOnDummy019(
IEntity other,
int extra);
115 private void EOnDummy020(
IEntity other,
int extra);
117 private void EOnDummy021(
IEntity other,
int extra);
119 private void EOnDummy022(
IEntity other,
int extra);
121 private void EOnDummy023(
IEntity other,
int extra);
123 private void EOnDummy024(
IEntity other,
int extra);
125 private void EOnDummy025(
IEntity other,
int extra);
127 private void EOnDummy026(
IEntity other,
int extra);
129 private void EOnDummy027(
IEntity other,
int extra);
131 private void EOnDummy028(
IEntity other,
int extra);
133 private void EOnDummy029(
IEntity other,
int extra);
135 private void EOnDummy030(
IEntity other,
int extra);
137 private void EOnDummy031(
IEntity other,
int extra);
400 proto external
void SetObject(
VObject object,
string options);
505 proto external
int Animate(
float speed,
int loop);
508 [
Obsolete(
"Use GetAnimation().SetBone() instead")]
510 [
Obsolete(
"Use GetAnimation().SetBoneMatrix() instead")]
512 [
Obsolete(
"Use GetAnimation().GetBoneMatrix() instead")]
514 [
Obsolete(
"Use GetAnimation().GetBoneIndex() instead")]
516 [
Obsolete(
"Use GetAnimation().GetBoneNames() instead")]
518 [
Obsolete(
"Use GetAnimation().GetBoneLocalMatrix() instead")]
530 proto external
int FindComponents(
typename typeName, notnull array<Managed> outComponents);
SCR_EAIThreatSectorFlags flags
ref array< string > angles
proto external vector GetLocalTransformAxis(int axis)
See IEntity::GetTransformAxis.
proto external void ComputeLocalTransform(out vector mat[])
proto external bool SetBoneMatrix(TNodeId bone, vector mat[4])
proto external EntityFlags GetFlags()
void IEntity(IEntitySource src, IEntity parent)
protected script Constructor
proto external EntityEvent SetEventMask(EntityEvent e)
void EOnPostSimulate(IEntity owner, float timeSlice)
void EOnVisible(IEntity owner, int frameNumber)
proto external Managed FindComponent(typename typeName)
void EOnPhysicsActive(IEntity owner, bool activeState)
proto external void SetAngles(vector angles)
Same as SetYawPitchRoll(), but sets rotation around X, Y and Z axis.
proto external float GetScale()
proto external EntityEvent GetEventMask()
void EOnInit(IEntity owner)
proto external vector GetLocalAngles()
Same as GetLocalYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
proto external int SetCameraMask(int mask)
Sets visibility mask for cameras, where Entity will be rendered.
proto external void SetOrigin(vector orig)
proto external vector GetAngles()
Same as GetYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
proto external vector GetOrigin()
proto external vector GetYawPitchRoll()
proto external Physics GetPhysics()
void EOnUser4(IEntity other, int extra)
EntityEvent.EV_USER+4.
void EOnTouch(IEntity owner, IEntity other, int touchTypesMask)
proto external bool SetLocalTransform(vector mat[4])
See IEntity::SetTransform. Returns false, if there is no change in transformation.
proto external int SetVComponentFlags(VCFlags flags)
Sets component flags.
proto external vector GetLocalYawPitchRoll()
void EOnPostFrame(IEntity owner, float timeSlice)
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 vector GetWorldTransformAxis(int axis)
See IEntity::GetTransformAxis.
void EOnUser1(IEntity other, int extra)
EntityEvent.EV_USER+1.
proto external void GetBounds(out vector mins, out vector maxs)
proto external IEntity GetChildren()
void EOnFrame(IEntity owner, float timeSlice)
void EOnUser0(IEntity other, int extra)
EntityEvent.EV_USER+0.
void EOnContact(IEntity owner, IEntity other, Contact contact)
proto external bool GetBoneMatrix(TNodeId bone, out vector mat[4])
proto external void GetWorldTransform(out vector mat[])
See IEntity::GetTransform.
proto external EntityEvent ClearEventMask(EntityEvent e)
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 int Update()
proto external Animation GetAnimation()
proto external BaseWorld GetWorld()
proto external bool SetTransform(vector mat[4])
proto external EntityFlags SetFlags(EntityFlags flags, bool recursively=false)
void EOnFixedFrame(IEntity owner, float timeSlice)
void EOnUser3(IEntity other, int extra)
EntityEvent.EV_USER+3.
proto external int FindComponents(typename typeName, notnull array< Managed > outComponents)
proto external void SetName(string name)
void EOnAnimEvent(IEntity owner, int type, int slot)
proto external Particles GetParticles()
proto external TNodeId GetBoneIndex(string boneName)
proto external vector GetTransformAxis(int axis)
See IEntity::GetTransformAxis.
proto external void GetWorldBounds(out vector mins, out vector maxs)
proto external bool IsLoaded()
proto external bool SetWorldTransform(vector mat[4])
See IEntity::SetTransform. Returns false, if there is no change in transformation.
proto external EntityID GetID()
proto external void GetTransform(out vector mat[])
proto external EntityPrefabData GetPrefabData()
proto external IEntity GetParent()
void EOnUser2(IEntity other, int extra)
EntityEvent.EV_USER+2.
void EOnSimulate(IEntity owner, float timeSlice)
proto external TNodeId GetPivot()
Returns pivot ID from hierarchy component.
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 GetBoneNames(out notnull array< string > boneNames)
proto external void SetYawPitchRoll(vector angles)
proto external vector VectorToLocal(vector vec)
void EOnJointBreak(IEntity owner, IEntity other)
proto external void RemoveChild(notnull IEntity child, bool keepTransform=false)
Remove Entity from hierarchy.
proto external string GetName()
proto external vector CoordToParent(vector coord)
proto external EntityFlags ClearFlags(EntityFlags flags, bool recursively=false)
proto external IEntity GetSibling()
proto external vector VectorToParent(vector vec)
proto external void SetScale(float scale)
proto external bool IsDeleted()
proto external void SetFixedLOD(int lod)
Set fixed LOD. Use -1 for non-fixed LOD.
proto external vector CoordToLocal(vector coord)
proto external void SetBone(TNodeId bone, vector angles, vector trans, float scale)
proto external VObject GetVObject()
Returns visual object set to this Entity. No reference is added.
proto external void GetLocalTransform(out vector mat[])
See IEntity::GetTransform.
proto external IEntity GetRootParent()
void EOnPhysicsMove(IEntity owner)
void EOnFixedPostFrame(IEntity owner, float timeSlice)
proto external EntityComponentPrefabData FindComponentData(typename typeName)
proto external bool GetBoneLocalMatrix(TNodeId bone, out vector mat[4])
EntityEvent
Various entity events.
EntityFlags
Various entity flags.
int TNodeId
Node global id is a hash of name of the node.
VCFlags
VObjectComponent flags.