Jump to content
Sign in to follow this  
Madin

Spawn weapon from RHS (or any other mod) on ground, without mag etc("weaponholdersimulated" for vanilla)

Recommended Posts

Hi all.

I have problem with spawning weapons without attachments, magazine etc.

for vanilla weapons/items i can go with:

createvehicle {[ "weaponholdersimulated",[getPos _loc select 0, getpos _loc select 1,0],[], 0, "can_Collide"];
addweaponcargo ["arifle_SDAR_F",1]; };

and its working.

but for RHS, CUP etc moded weapons, as example "rhs_weapon_ak103" i don't know what to place instead of "weaponholdersimulated" or where i can find it. if i only change weapon name, it give me error.

 

Any ideas?

Share this post


Link to post
Share on other sites

Try this:

 

_holder = createvehicle [ "weaponholdersimulated",[getPos _loc select 0, getpos _loc select 1,0],[], 0, "can_Collide"];
_holder addweaponcargo ["NAME_OF_YOU_GUN",1]

 

  • Thanks 1

Share this post


Link to post
Share on other sites

If you have code that is working, please post that instead, because what you posted does not work. Also there is no class name "rhs_weapon_ak103" - at least not in my copy of RHS, so try this classname instead:

Holder = createvehicle [ "weaponholdersimulated",getpos player,[], 0, "can_Collide"]; 
Holder addweaponcargo ["rhs_weap_ak103",1];

 

  • Like 1

Share this post


Link to post
Share on other sites
15 minutes ago, Muzzleflash said:

If you have code that is working, please post that instead, because what you posted does not work. Also there is no class name "rhs_weapon_ak103" - at least not in my copy of RHS, so try this classname instead:


Holder = createvehicle [ "weaponholdersimulated",getpos player,[], 0, "can_Collide"]; 
Holder addweaponcargo ["rhs_weap_ak103",1];

THIS! thank you :D that damn "ON"

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×