Jump to content
Sign in to follow this  
MattRM

Sniper code for item ?

Recommended Posts

Hi,

I would like to know what code is need to add the M320R and M6 Lynx to equip soldier in the editor ?

Thank you very much,

Matt

Share this post


Link to post
Share on other sites

M320:

removeAllWeapons unitName; this addWeapon "srifle_LRR_F";

If you want the rifle to have a scope, put "srifle_LRR_SOS_F" instead of "srifle_LRR_F".

GM6:

removeAllWeapons unitName; this addWeapon "srifle_GM6_F";

For the scoped variant, put "srifle_GM6_SOS_F" instead of "srifle_GM6_F".

And yes, the "" are required.

You should also put the unit's name instead of unitName, obviously.

Share this post


Link to post
Share on other sites

Using the inventory function in the functions library to add the weapon. The config names are in the config library. Both are ingame, in the editor.

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  

×