Defines the level 3 Combine Lock item (combine_lock_3) of the Combine Locks plugin, which fits a Combine lock
with access level 3 to the unownable door the player is looking at.
Summary
Methods
OnDrop(player, position)shared
Called when the lock is dropped; does nothing, so it can be dropped freely.
Fits a level 3 Combine lock to the unownable door the player looks at, within 192 units.
Methods
ITEM:OnDrop(player, position)
shared gamemodes/cwhl2rp/plugins/combinelocks/plugin/items/sh_combine_lock_3.lua:71Called when the lock is dropped; does nothing, so it can be dropped freely.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/combinelocks/plugin/items/sh_combine_lock_3.lua:24Fits a level 3 Combine lock to the unownable door the player looks at, within 192 units.
Destroys a breaching charge already on the door. Fails, keeping the item, when the door already has a lock or cannot have one.
Parameters
- player
- itemEntity
Returns
- Boolean
falsewhen the lock could not be fitted