SoldierEntity
Inherits from ControllableEntity
Summary
Constructors
| SoldierEntity(other: EntityBusPeer) |
| SoldierEntity(other: Entity) |
| SoldierEntity(other: SpatialEntity) |
| SoldierEntity(other: GameEntity) |
| SoldierEntity(other: PhysicsEntity) |
| SoldierEntity(other: ControllableEntity) |
Properties
| Name | Type |
|---|---|
| worldTransform | LinearTransform |
| player | Player | nil |
| detailedCollisionEnabled | bool |
| physicsEnabled | bool |
| forceInvisible | bool |
| aimingEnabled | bool |
| maxHealth | float |
| waterLevel | float |
| isManDown | bool |
| isAlive | bool |
| isDead | bool |
| isDying | bool |
| isInteractiveManDown | bool |
| isFiring | bool |
| isReloading | bool |
| health | float |
| weaponsComponent | SoldierWeaponsComponent |
| pose | CharacterPoseType |
| pendingPose | CharacterPoseType |
Methods
| Method | Returns |
|---|---|
| SetPosition(position: Vec3) | void |
| Kill() | void |
| ApplyCustomization(customizationData: DataContainer) | void |
| ForceDead() | void |
| SingleStepEntry(entryId: int) | void |
| SetPose(pose: CharacterPoseType, immediately: bool, overridePending: bool) | void |
| SetTransform(transform: LinearTransform) | void |
Operators
| Operator | Rhs | Returns |
|---|---|---|
| == | SoldierEntity | bool |
Static members
| Name | Type |
|---|---|
| SoldierEntity.typeInfo | TypeInformation |
Constructors
SoldierEntity
SoldierEntity(other: EntityBusPeer)
Parameters
| Name | Type | Description |
|---|---|---|
| other | EntityBusPeer |
SoldierEntity
SoldierEntity(other: Entity)
Parameters
| Name | Type | Description |
|---|---|---|
| other | Entity |
SoldierEntity
SoldierEntity(other: SpatialEntity)
Parameters
| Name | Type | Description |
|---|---|---|
| other | SpatialEntity |
SoldierEntity
SoldierEntity(other: GameEntity)
Parameters
| Name | Type | Description |
|---|---|---|
| other | GameEntity |
SoldierEntity
SoldierEntity(other: PhysicsEntity)
Parameters
| Name | Type | Description |
|---|---|---|
| other | PhysicsEntity |
SoldierEntity
SoldierEntity(other: ControllableEntity)
Parameters
| Name | Type | Description |
|---|---|---|
| other | ControllableEntity |
Properties
worldTransform
player
Player | nil
detailedCollisionEnabled
bool
physicsEnabled
bool
forceInvisible
bool
aimingEnabled
bool
maxHealth
float
waterLevel
float
isManDown
bool
isAlive
bool
isDead
bool
isDying
bool
isInteractiveManDown
bool
isFiring
bool
isReloading
bool
health
float
weaponsComponent
pose
pendingPose
Methods
SetPosition
SetPosition(position: Vec3)
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vec3 |
Kill
Kill()
ApplyCustomization
ApplyCustomization(customizationData: DataContainer)
Parameters
| Name | Type | Description |
|---|---|---|
| customizationData | DataContainer |
ForceDead
ForceDead()
SingleStepEntry
SingleStepEntry(entryId: int)
Parameters
| Name | Type | Description |
|---|---|---|
| entryId | int |
SetPose
SetPose(pose: CharacterPoseType, immediately: bool, overridePending: bool)
Parameters
| Name | Type | Description |
|---|---|---|
| pose | CharacterPoseType | |
| immediately | bool | |
| overridePending | bool |
SetTransform
SetTransform(transform: LinearTransform)
Parameters
| Name | Type | Description |
|---|---|---|
| transform | LinearTransform |
Operators
operator==
operator==(rhs: SoldierEntity): bool
Parameters
| Name | Type | Description |
|---|---|---|
| rhs | SoldierEntity |
Returns
| Type | Description |
|---|---|
| bool |
Static members
typeInfo
Last modified May 23, 2022: fix: inherits from EntityBusPeer (4eabb2cb)