Game Development Reference
In-Depth Information
Setting a path through the obstacle course
You can set a path through the obstacle course as follows:
SoldierAgent.lua :
require "SandboxUtilities"
function Agent_Initialize(agent)
...
_soldierAsm:RequestState(
Soldier.SoldierStates.STAND_RUN_FORWARD);
-- Assign the default level path and adjust the agent's
speed
-- to match the soldier's steering scalars.
agent:SetPath(SandboxUtilities_GetLevelPath());
agent:SetMaxSpeed(agent:GetMaxSpeed() * 0.5);
end
Search WWH ::




Custom Search