Method | Description | |
---|---|---|
GetEditorType ( |
||
GetHashCode ( ) : int | ||
InvalidateTrigger ( ) : void |
Invalidate the TriggerBounds, so it gets recalculated and catches things which are already inside when it gets enabled.
|
|
OnPostSpawn ( object args ) : void |
Called after spawning, with the parameters supplied to Entity.Spawn.
|
|
OnSpawn ( ) : void |
This callback is called when this entity has spawned. The entity has been created and added to the list of entities. Some functionality is not yet available at the point this method is called. For all game object interactions, use OnPostSpawn.
|
Method | Description | |
---|---|---|
OnAttach ( CryEngine.EntityId child ) : void |
Called whenever another entity has been linked to this entity.
|
|
OnCollision ( |
Sent on entity collision.
|
|
OnDetach ( CryEngine.EntityId child ) : void |
Called whenever another entity has been unlinked from this entity.
|
|
OnDetachThis ( CryEngine.EntityId parent ) : void |
Called whenever this entity is unliked from another entity.
|
|
OnEditorReset ( bool enteringGame ) : void |
Called when resetting the state of the entity in Editor.
|
|
OnEnterArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void |
Sent when entity enters to the area proximity.
|
|
OnEnterNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void | ||
OnLeaveArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void |
Sent when entity leaves the area proximity.
|
|
OnLeaveNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void | ||
OnLevelLoaded ( ) : void |
Called after level has been loaded, is not called on serialization. Note that this is called prior to GameRules.OnClientConnect and OnClientEnteredGame!
|
|
OnMove ( EntityMoveFlags moveFlags ) : void |
Called when the entities local or world transformation matrix changes. (Position / Rotation / Scale)
|
|
OnMoveInsideArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void |
Sent when entity moves inside the area proximity.
|
|
OnMoveNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId, float fade ) : void | ||
OnPostUpdate ( ) : void | ||
OnPrePhysicsUpdate ( ) : void | ||
OnPropertyChanged ( |
Called when the user changes a property from within the Editor.
|
|
OnRemove ( ) : bool |
Called when the entity is being removed.
|
|
OnStartGame ( ) : void |
Called when game is started (games may start multiple times)
|
|
OnStartLevel ( ) : void |
Called when the level is started.
|
|
PostSerialize ( ) : void |
Method | Description | |
---|---|---|
FullSerialize ( Serialization serialize ) : void | ||
GetPropertyValue ( string propertyName ) : string | ||
InternalFullSerialize ( Serialization serialize ) : void | ||
InternalInitialize ( IScriptInitializationParams initParams ) : bool |
Initializes the entity, not recommended to set manually.
|
|
InternalNetSerialize ( Serialization serialize, int aspect, byte profile, int flags ) : void | ||
NetSerialize ( Serialization serialize, int aspect, byte profile, int flags ) : void | ||
OnAnimationEvent ( |
||
SetPropertyValue ( string propertyName, EditorPropertyType propertyType, string valueString ) : void |
public static GetEditorType ( |
||
type | ||
propertyType | EditorPropertyType | |
return | EditorPropertyType |
protected OnAttach ( CryEngine.EntityId child ) : void | ||
child | CryEngine.EntityId | |
return | void |
protected OnCollision ( |
||
source | ||
target | ||
hitPos | ||
contactNormal | ||
penetration | float | |
radius | float | |
return | void |
protected OnDetach ( CryEngine.EntityId child ) : void | ||
child | CryEngine.EntityId | |
return | void |
protected OnDetachThis ( CryEngine.EntityId parent ) : void | ||
parent | CryEngine.EntityId | |
return | void |
protected OnEditorReset ( bool enteringGame ) : void | ||
enteringGame | bool | true if currently entering gamemode, false if exiting. |
return | void |
protected OnEnterArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void | ||
entityId | CryEngine.EntityId | |
areaId | int | |
areaEntityId | CryEngine.EntityId | |
return | void |
protected OnEnterNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void | ||
entityId | CryEngine.EntityId | |
areaId | int | |
areaEntityId | CryEngine.EntityId | |
return | void |
protected OnLeaveArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void | ||
entityId | CryEngine.EntityId | |
areaId | int | |
areaEntityId | CryEngine.EntityId | |
return | void |
protected OnLeaveNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void | ||
entityId | CryEngine.EntityId | |
areaId | int | |
areaEntityId | CryEngine.EntityId | |
return | void |
protected OnMove ( EntityMoveFlags moveFlags ) : void | ||
moveFlags | EntityMoveFlags | |
return | void |
protected OnMoveInsideArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void | ||
entityId | CryEngine.EntityId | |
areaId | int | |
areaEntityId | CryEngine.EntityId | |
return | void |
protected OnMoveNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId, float fade ) : void | ||
entityId | CryEngine.EntityId | |
areaId | int | |
areaEntityId | CryEngine.EntityId | |
fade | float | |
return | void |
protected OnPropertyChanged ( |
||
memberInfo | ||
propertyType | EditorPropertyType | |
newValue | object | |
return | void |