Category: Component
Parent class: COMPONENT
GAME_OBJECT
GAME_OBJECT value
void setAnimation(animation [, speed])
Name | Type | Description |
---|---|---|
animation | AGENT_ANIMATION_STATE | |
speed | float |
boolean isOnWater()
AGENT_PROFILE getProfile()
void setVehicle(vehicle)
Assign the vehicle to the agent. This does not destroy previously assigned vehicle.
Name | Type | Description |
---|---|---|
vehicle | COMP_VEHICLE |
COMP_VEHICLE getVehicle()
boolean isOnBoat()
void die()
This will make the agent die during his next update().
ON_DYING()
ON_VEHICLE_CHANGED(COMP_VEHICLE previousVehicle, COMP_VEHICLE newVehicle)