laserlaser Posted November 20, 2010 Share Posted November 20, 2010 Hello,this my new function respawnAllVehicles with exceptions... Ex use: v1 = createVehicle(...) respawnAllVehicles(v1) ((( Here, it just does not respawn vehicle "v1" ))) or v1 = createVehicle(...) v2 = createVehicle(...) v3 = createVehicle(...) respawnAllVehicles(v1,v3) ((( Here, it just does respawn vehicle "v2" ))) The Function : function respawnAllVehicles(...) local ex = {...} local cars = getElementsByType("vehicle") for k,v in ipairs(cars) do local carEx=0 for a,c in ipairs(ex) do if c == ex then carEx=1 end end if carEx~=1 then respawnVehicle(v) end end end - War Of Empire LUA Team - Link to comment
drake989 Posted November 20, 2010 Share Posted November 20, 2010 "Scripting" this is no section for help? hm maybe resources is for release x; Link to comment
dzek (varez) Posted November 20, 2010 Share Posted November 20, 2010 well, this is forum for help but as i've already told you - please add such things to wiki. thanks. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now