kocrachon 2 Posted August 15, 2008 Ok, so I am trying to creat a game mode for all of my buddys called nuke war. Pretty much I am going to use the nuke scud and I need a little help setting it up. First off, the plan is we fight over the scud and the team that can get it and launch it at the enemy base wins. So the help I need comes here. I need some help on ideas on how to keep the scud alive, and if I cant make it invicibile, how to make an empty vehicle respawn. I need to find out how to make it respawn either way simply because I will need to be able to respawn it if the player driving it gets killed taking it there... So are you guys able to help me out figure out how to respawn empty vehicles and maybe make it invicible when un-occupied? Share this post Link to post Share on other sites
the unknown 0 Posted August 19, 2008 I havent tested this so I aint sure if it will work, just save it as vecrespawn.sqf in your mission folder and put the runcode in the init line of the scud. script <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_vehicle = _this select 0; _driver = (_vehicle) emptyPositions "driver"; while (_driver > 0) do {_vehicle setDamage 0;}; _vehicle addEventHandler ["killed",{_vehicle respawnVehicle [5.0];var = [_vehicle] execVM "vecrespawn.sqf"}]; runcode <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> var =[this] execVM "vecrespawn.sqf" Share this post Link to post Share on other sites