GSC reference › Built-in
AllowMeleePowerLeft()
Built-in (engine)
Server
Player Called on: player
Sets whether the player can melee power left
Signature
<player> AllowMeleePowerLeft(<melee>)
Called on an entity: player AllowMeleePowerLeft(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| melee | Required | A boolean. True if the player can melee power left, and false otherwise |
Example (from Treyarch's docs)
player AllowMeleePowerLeft(false)
Real uses in BO3's scripts
Called 4 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_weap_glaive.gsc, line 224
self allowmeleepowerleft(1); - scripts/zm/_zm_weap_glaive.gsc, line 252
self allowmeleepowerleft(1); - scripts/zm/_zm_weap_glaive.gsc, line 817
self allowmeleepowerleft(0); - scripts/zm/_zm_weap_glaive.gsc, line 822
self allowmeleepowerleft(1);
Related built-ins
- MeleeButtonPressed()Check if the player is pressing the melee button
- IsMeleeing()Returns true if the player is currently meleeing
- AllowMelee()Sets whether the player can melee
- finishMeleeHit()Notifies the clients of the melee hit or miss
- GetVehicleBoostTimeLeft()Gets the vehicle's remaining boost time
- GadgetPowerSet()Sets the power override to value.
- GadgetPowerGet()Gets the power remaining for gadget.
- GadgetPowerChange()Applies a power change to the gadget power.
- Melee()Makes this actor melee attack.
- GadgetPowerReset()Applies a power reset.
- isUsingT7Melee()Returns true T7 Melee system is being used
- GetGadgetPower()Returns the current power level of the player gadget
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).