Game Development Reference
In-Depth Information
-- starts playing to prevent other agents from
colliding with
-- the agent's physics capsule.
if (currentState == Soldier.SoldierStates.STAND_DEAD or
currentState == Soldier.SoldierStates.CROUCH_DEAD)
then
agent:RemovePhysics();
agent:SetHealth(0);
end
end
The following screenshot shows you our agent in the death state:
Search WWH ::




Custom Search