I'm in the process of porting over from eventscripts, and I'm finding it very difficult to find examples. Here is what I'm trying to do in SM.
I would like to get the primary weapon, secondary weapon, and total he, flashbangs, and smoke.
In ES I used weapon, dropped then gave weapon.
I would like to drop weapons instead of removing, if thats possible.
Any help would be much appreciated, thanks.
Heres the idea, I'm sure there is a better concept.
Code:
GetPrimaryWeapon(client)
--if == 1, drop primary
----GiveRequestedWeapon(client, weapon)
--else
----GiveRequestedWeapon(client, weapon)
GetSecondaryWeapon(client)
--if == 1, then drop secondary
----GiveRequestedWeapon(client, weapon)
--else
----GiveRequestedWeapon(client, weapon)
GetHECount(client)
--if == 0,
----GiveNade(client, he, 1)
--else do nothing
GetFBCount(client)
--if == 0,
----GiveNade(client, flashbang, 2)
--if == 1,
----GiveNade(client, flashbang, 1)
--elseif == 2,
----do nothing
GetSMCount(client)
--if == 0,
----GiveNade(client, smoke, 1)
--else do nothing
GiveRequestedWeapon(client, weapon)
GiveNade(client, nadeType, amount)