Game Development Reference
In-Depth Information
Is alive evaluator
IsAlive simply informs you whether the agent has health left, and the IsNotAlive
evaluator returns the negation:
SoldierEvaluators.lua :
function SoldierEvaluators_IsAlive(userData)
return Agent.GetHealth(userData.agent) > 0;
end
function SoldierEvaluators_IsNotAlive(userData)
return not SoldierEvaluators_IsAlive(userData);
end
Search WWH ::




Custom Search