I'm pretty sure it is just
Code:self getSecondaryWeapon();
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!~~~~~~~~~~~~~~~~
Last edited by liwei8257; 07-01-2011 at 07:11 PM. Reason: spelling mistake
I'm pretty sure it is just
Code:self getSecondaryWeapon();
The lines in my Steam are i's
liwei8257 (07-01-2011)
self get currentoffhand();
liwei8257 (07-01-2011)
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.
liwei8257 (07-01-2011)
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~~~~