Get SaintAxe&Ror SpeechMaker Now And build your conversations easily ! |
The wall - Read LUA higlighted source code
Need to share Highlighted and indented LUA source code ?
|
Posted by SaintAxe&Ror on : 2011-02-19 15:02:49
ObjectiveState for coltcat
totalTarget = 0 function onPlaceableKill_target1(placeable, attacker) totalTarget = totalTarget + 1 checkObjTargets() end function onPlaceableKill_target2(placeable, attacker) totalTarget = totalTarget + 1 checkObjTargets() end function onPlaceableKill_target3(placeable, attacker) totalTarget = totalTarget + 1 checkObjTargets() end function checkObjTargets() if totalTarget == 3 then OFP:setObjectiveState("objTargets", "COMPLETED") end end
