Hello,
I'm playing around with a development server just for giggles. Playing around with my friends, and just enjoying the game in general. I acquired the free admin tools that everyone seems to love so much, and cool - that's nifty, very helpful. Added a few weapons kits for myself... awesome. A few vehicles, too. I then attempted to add HALO Jumps to the vehicles spawned in this manner (and intend on later adding halo jumps to purchased vehicles, but that's a thread for a different day).
The issue I'm having at this point is... this is how I'm adding the jump.
However, I am the only person that sees the HALO JUMP option. Not all clients are getting this. It's local to me, because I executed the script. How can I spawn a new vehicle with a .sqf , but in such a way that everyone on the server gets the action?
I also had the same issue with an ammobox. I create an ammobox via the Tools Menu, and then I was executing
Well, This obviously will not work on a dedi, as execVM is client-side anyways... Both of these lines were generally used by me in the init field of vehicles / ammoboxes in missions I've created in ARMA. However, this dedi stuff is a whole different animal.
So, in searching about, I discovered 'call RE'.
I replaced the above line with
but that didn't execute createFiller.sqf for me either, let alone everyone else on the server. How can I execute scripts on vehicles / objects on a global level, if the object or vehicle does not exist on the map yet, and is to be spawned in dynamically at some other point in time (ie, Trader Purchase or Admin spawn) ?
Any help or pointers would be greatly appreciated. Thanks!
I'm playing around with a development server just for giggles. Playing around with my friends, and just enjoying the game in general. I acquired the free admin tools that everyone seems to love so much, and cool - that's nifty, very helpful. Added a few weapons kits for myself... awesome. A few vehicles, too. I then attempted to add HALO Jumps to the vehicles spawned in this manner (and intend on later adding halo jumps to purchased vehicles, but that's a thread for a different day).
The issue I'm having at this point is... this is how I'm adding the jump.
Code:
_nul = _spwnveh addAction ["HALO JUMP","jump.sqf",[],1,false,true,"","_this in _target"];
I also had the same issue with an ammobox. I create an ammobox via the Tools Menu, and then I was executing
Code:
nul = [_spwnveh] execVM "crateFiller.sqf"
Well, This obviously will not work on a dedi, as execVM is client-side anyways... Both of these lines were generally used by me in the init field of vehicles / ammoboxes in missions I've created in ARMA. However, this dedi stuff is a whole different animal.
So, in searching about, I discovered 'call RE'.
I replaced the above line with
Code:
[nil, _spwnveh, rEXECVM, "crateFiller.sqf"] call RE;
Any help or pointers would be greatly appreciated. Thanks!