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 |
| alive | bool |
| deathTimer | float |
| player | Player | nil |
| health | float |
| authoritativeYaw | float |
| authoritativePitch | float |
| aimingEnable | bool |
| forceInvisible | bool |
| sprintRecoveryTimer | float |
| wasSprinting | bool |
| weaponsComponent | SoldierWeaponsComponent |
| ragdollComponent | RagdollComponent |
| isManDown | bool |
| isAlive | bool |
| isDead | bool |
| isDying | bool |
| isInteractiveManDown | bool |
| isFiring | bool |
| isReloading | bool |
| pose | CharacterPoseType |
| pendingPose | CharacterPoseType |
Methods
| Method | Returns |
|---|---|
| SetPosition(position: Vec3) | 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
alive
bool
deathTimer
float
player
Player | nil
health
float
authoritativeYaw
float
authoritativePitch
float
aimingEnable
bool
forceInvisible
bool
sprintRecoveryTimer
float
wasSprinting
bool
weaponsComponent
ragdollComponent
isManDown
bool
isAlive
bool
isDead
bool
isDying
bool
isInteractiveManDown
bool
isFiring
bool
isReloading
bool
pose
pendingPose
Methods
SetPosition
SetPosition(position: Vec3)
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vec3 |
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)