This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk
Forum rules
Forum rules
Add RifleWeaponItem.EquipLazer && HandgunWeaponItem.EquipLazer
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
-
NearHuscarl
- Superfighter

- Posts: 97
- Joined: Thu Feb 07, 2019 4:36 am
Add RifleWeaponItem.EquipLazer && HandgunWeaponItem.EquipLazer
I am writing a method to get all of the weapons in the inventory of an IPlayer and transfer it to another IPlayer. Right now there is no way to know if the player's guns are equipped with laser or not.
2 x

- Gurt
- Lead Programmer

- Posts: 1887
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Gender:
- Age: 36
Added after v.1.3.5:
ScriptAPI: Added IPlayer.CurrentPrimaryRangedWeapon and IPlayer.CurrentSecondaryRangedWeapon which both returns the same struct RangedWeaponItem which is the same representation as RifleWeaponItem and HandgunWeaponItem (they all three have the same properties).
ScriptAPI: Added LazerEquipped property to RangedWeaponItem, RifleWeaponItem and HandgrunWeaponItem to be able to read if a ranged weapon has a lazer upgrade attached.
ScriptAPI: Added IPlayer.CurrentPrimaryRangedWeapon and IPlayer.CurrentSecondaryRangedWeapon which both returns the same struct RangedWeaponItem which is the same representation as RifleWeaponItem and HandgunWeaponItem (they all three have the same properties).
ScriptAPI: Added LazerEquipped property to RangedWeaponItem, RifleWeaponItem and HandgrunWeaponItem to be able to read if a ranged weapon has a lazer upgrade attached.
1 x
Gurt