SyncWeapon
9 functions
- SyncWeapon_CanAttackNowChecks whether a sync weapon can attack a target without moving or turning.
- SyncWeapon_ExistsReturns true if a sync weapon still exists in the game world
- SyncWeapon_GetEntityReturns the EntityID of a sync weapon, or nil if it's been destroyed
- SyncWeapon_GetFromEGroupRegisters the sync weapon in the egroup and returns a SyncWeaponID you can use to keep track of it
- SyncWeapon_GetFromSGroupRegisters the sync weapon in the sgroup and returns a SyncWeaponID you can use to keep track of it
- SyncWeapon_GetPositionReturns the position of a sync weapon, or nil if it's been destroyed
- SyncWeapon_IsAttackingChecks whether or not the actual sync weapon in a squad attacking.
- SyncWeapon_IsOwnedByPlayerReturns true if the specified player owns the sync weapon. Use a playerid of nil to see if it's unonwed.
- SyncWeapon_SetAutoTargettingSets whether a weapon to auto-target things or not