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 ?
The wall is at your disposal for posting some LUA code in order to share it with your friends.
WRITE YOUR CODE ON THE WALL

You can also use the anonymous account if you don't want to register :
Login -> Anonymous Password -> anonymous


Link : Official LUA Documentation

Editors entrance
Login :   Pass :
 
: Remember me   
 
Not yet registered : Register Now
 
 
Back to summary
 
Posted by SaintAxe&Ror on : 2011-02-19 15:06:01

End of the missions - for coltcat

function onEnter_trigEnd(zoneName, unitName)
    if OFP:isInEchelon(unitName, "echSAR") then
	if OFP:getObjectiveState("objBridge") == "COMPLETED"			
             and OFP:getObjectiveState("objContainer") == "COMPLETED"
                 and OFP:getObjectiveState("obj3Cont") == "COMPLETED"
	then
             OFP:missionCompleted() 
	else
             OFP:missionFailed() 
	end 
    end 
end
 

 
Back to summary