cadez (08-08-2012)
In my script my box is named "_heli", as seen here, so I want the box to delete itself so it isn't on the server forever.Code:_heli = createVehicle [_className, _location, [], 0, "CAN_COLLIDE"];
So basically in a simple layout...
- Execute the script and the box is created with _heli being declared as the vehicle (_heli = createVehicle)
- The code puts all the weapons/ammo/backpacks into the crate and reaches the sleep line
- The code sleeps for 600 seconds (Keep it between 120-180 for best results)
- The code then continues on in the script to "deleteVehicle _heli"
Basically it just deletes the _heli (Ammobox).
You can copy and paste those last lines into the bottom of your script, but be sure to rename it tobecause your box is declared as _abox, not _heli.Code:sleep 600; deleteVehicle _abox
Originally Posted by VindictusModsOriginally Posted by sd333221
cadez (08-08-2012)
Aaah now i see! but just one question im trying to get my ammo script to load from my arma 2 operation arrowhead folder, (sins you need to have your scripts there for last bypasser) how do i do that? mine right now is
_abox = "AmmoBoxBig" createVehicle (position player); [_abox] execVM "\MyScripts\cargo.sqf"; _car = "TT650_Civ" createVehicleLocal (position player);
like when i try to load my new cargo file (cleaned it some like you said) it only loads the old one.. and yes i've changed the cargo in MyScripts to the new one. still dosnt work
Last edited by cadez; 08-08-2012 at 06:17 AM.
Sorry for such a delayed response! I must have been asleep and missed this since there was a flurry of updates today! I'm so sorry!
Now to your issue. Try and move them to the root directory of Arma 2, and just launching it as(Assuming your using the injector console).Code:execVM "ammobox.sqf"; //or whatever yours is named
Again, so sorry for missing your post!
Originally Posted by VindictusModsOriginally Posted by sd333221
rename the cargoscript to ammobox.sqf and then inject it? dude no problems i saw the mess with the new injecter thingy so i really dont mind you taking time to answer my post, im really gratefull so dont beat your self up for not seeing my post ^^
Since I feel like I need to finish this up with you, I'll stay on till this is finished. Simplying download the rar, extract the 2 files (the dll and injector.exe). Launch the game. If it crashes, try WinJect. If it continues to crash your SOL til the next bypass. A console should open up with some useless lines about what it has done. Now it should mention something about executing code. name your file whatever you would like, just make certain it is in the arma 2 operation arrowhead directory. Now, join a server (Be sure winject is closed if you used that! The injector can stay open). When you character is loaded in, minimize to the injector/console thing. Type in EXACTLY what is in this code box (Just insert your script name in the <yourscripthere>).This should spawn your crate at your feet!. If none of this works, well odds are I can't help you, as the injector is really, really buggy. Good Luck! I'm logging off now, ask Jack (he created some other threads, look for him) and he'll be happy to help.Code:execVM "<yourscripthere>.sqf";
Originally Posted by VindictusModsOriginally Posted by sd333221
yeah yeah that i know! hmm.. ima try one thing if that dont work ill get back too you
---------- Post added at 05:02 AM ---------- Previous post was at 04:49 AM ----------
wtf.. got it working before, now it only crashes my game :S