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 Haywood Slap on : 2011-02-19 17:22:31

Checking for spawned entities

-- Called by the game engine every time an entity set has spawned.
function onSpawnedReady(setName, setID, tableOfEntities, errorCode)
	-- Check which entity set spawned and issue the appropriate move order.
	if set3spawn == setID then
		OFP:move("teamset3", "wpescape", "ADDTOEND")
	elseif set4spawn == setID then
		OFP:move("teamset4", "wpescape", "ADDTOEND")
	elseif ...
		...
	end	
end

 

 
Back to summary