Jump to content
  • 0

script help! replace weapons?


Brainzaw

Question

Hello Forum!

 

i can't make a user on opendayz.com and ask there because of an error that says the website is offline...

So im posting here insteead :D  
this script: http://opendayz.net/threads/tutorial-remove-weapons-replace-weapons-on-vehicles.11070/

It allows to add/remove/replace weapons on vehicles, BUT does that also include the mounted guns? like the KORD and M2?

 

 adding this to server_monitor in server pbo, 

 

Underneath the lines paste the following code

//## LAND VEHICLES

//GAZ Vodnik remove weapons

if (_object isKindOf "GAZ_Vodnik_HMG") then {

_object removeWeapon "2A42";

_object removeMagazine "1500Rnd_762x54_PKT";

 

//## LAND VEHICLES

//GAZ Vodnik add weapon

if (_object isKindOf "GAZ_Vodnik_HMG") then {

_object addWeapon "2A42";

_object addMagazine "1500Rnd_762x54_PKT";

};

 

underneath these lines:

 

                clearWeaponCargoGlobal  _object;

                clearMagazineCargoGlobal  _object;

 

to simply add or remove ammo or weapons.

 

If this includes munted guns, can i make a KORD for example, behave like a sniper? :huh:  a M107 maybe? 
Or is it only vehicle guns you can relpace? 

Cheers hope you can help! :lol:  

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...