Game Development Reference
In-Depth Information
The agent moving to a random position
Setting a time limit for the move action will still allow our agents to move to their final
target position, but gives other actions a chance to execute in case the situation has
changed. Movement paths can be long, and it is undesirable to not handle situations such
as death until the move action has terminated:
SoldierActions.lua :
function SoldierActions_MoveToUpdate(deltaTimeInMillis,
userData)
-- Terminate the action after the allotted 0.5
seconds. The
Search WWH ::




Custom Search