ScarDoc

Start typing to search the SCAR reference.

Function
SyncWeapon

SyncWeapon_IsOwnedByPlayer

Returns true if the specified player owns the sync weapon. Use a playerid of nil to see if it's unonwed.

On this page
SyncWeapon_IsOwnedByPlayer(weapon, player)

Description

If player is not specified, then the code will check to see if the SyncWeapon is owned by the world.

Parameters

  • weaponSyncWeaponIDrequired
  • playerPlayerIDoptional

Returns

Boolean

Source

Declared in the game's script sources at:

scar/syncweapons.scar