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 pyhunter101 on : 2011-10-13 11:30:27 - Last edited : 2011-11-17 19:41:51

2 Spyplane's/helo's (2 zones)


function onFiring_iu35ussfldr_sa02meusoc(firingSoldierName, weaponComponentName)
    if ob < 5 then
    spyplane = OFP:activateEntitySet("spy")
    else
    spyplane = OFP:activateEntitySet("spy2")
    end
end

function onSpawnedReady_spy( setName, setID, tableOfEntities, errorCode )
    OFP:setInvulnerable("EchelonI63", true)
    OFP:setVehicleIgnoredByAI("helo3", true)
    OFP:rapidMove("EchelonI63","waypointI200","OVERRIDE")
end

function onSpawnedReady_spy2( setName, setID, tableOfEntities, errorCode )
    OFP:setInvulnerable("EchelonI73", true)
    OFP:setVehicleIgnoredByAI("helo4", true)
    OFP:rapidMove("EchelonI73","waypointI131p","OVERRIDE")
end

function onEnter_triggerzoneI11(zoneName, unitName)
    OFP:destroyEntitySet(spyplane)
end
 

 
Back to summary