Helpneed codes to get secoundary weapon.

Posts 18 of 8 · Page 1 of 1
need codes to get secoundary weapon.
here is the situation
i want to replace players secondary weapon,then i should get it first,but i don't know how.
I can get first gun by this : firstgun=self getCurrentWeapon();
but what should I can to get secondary weapon?
I tried
firstgun=self getCurrentWeapon();
self takeWeapon(self getCurrentWeapon());
secgun = self GetWeaponsListPrimaries();
just take firstgun away and get the secgun,but i failed .

anyone can help me ?
Thanks!~~~~~~~~~~~~~~~~
I'm pretty sure it is just
Code:
self getSecondaryWeapon();
Quote Originally Posted by Nachos View Post
I'm pretty sure it is just
Code:
self getSecondaryWeapon();
i tried just like this
Code:
self takeWeapon(self getSecondaryWeapon());
and......i get this :script compile error
unknown function.........
T_T
i'm making a pc gsc,does that matter?
self get currentoffhand();
Quote Originally Posted by Jorndel View Post
self get currentoffhand();
i tried then it stands for a frag or c4 etc. but not a secondary weapon
self giveWeapon( "deserteagle_fmj_mp" );

//idk I forgot GSC for the most part. Correct me.
If you have an weapon you want to remove. Like G18 or any other weapons.

You have another way.
But then you need to have the weapons name to remove them.
i don't know the right way for secondary weapon.
but i finish my mod in another way
in _class.gsc i find something like secondaryName and primaryName.
then it works out.

my mod anti attachments rpg/gay18/at4
and it works in _class.gsc.

thanks guys! finally over~~~~
Posts 18 of 8 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?