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 Acekees on : 2011-04-03 22:38:07

Objective (ob1) won't complete?

function onMissionStart()
	OFP:setObjectiveState("ob1","IN_PROGRESS")
	OFP:setObjectiveState("ob2","IN_PROGRESS")
end

function onDeath(victim, killer)
	if not OFP:isAlive("team1") then
		OFP:setObjectiveState("ob1","COMPLETED")
	end
end

function onDeath(victim, killer)
	if not OFP:isAlive("team2") then
		OFP:setObjectiveState("ob2","COMPLETED")
	end
end
 

 
Back to summary