GSC reference › Built-in
WeaponFriendlyHacking()
Built-in (engine)
Client
Returns the value of the friendlyHacking bit on the specified weapon of the specified player
Signature
WeaponFriendlyHacking(<localClientNum>, <localClientNum>)
Parameters
| Name | Required? | Details |
|---|---|---|
| localClientNum | Required | Local client number of the player |
| localClientNum | Required | Weapon to check |
Example (from Treyarch's docs)
currentWeapon = GetCurrentWeapon( localClientNum )
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/shared/weapons/_hacker_tool.csc, line 223
friendlyhacking = weaponfriendlyhacking(localclientnum);
Related built-ins
- SetWeaponFriendlyHacking()Set the weapon lockon completion percentage
- IsFriendly()Returns true if entity is friendly
- RemoveFriendlyScrambler()Removes new friendly scrambler from the compass using the same handle you gave when creating it
- AddFriendlyScrambler()Adds new friendly scrambler to the compass
- GetFriendlyDogTagModel()Get the friendly of the dog tag model currently associated character body
- RemoveAllFriendlyScramblers()Removes all friendly scramblers
- SetFriendlyNameDraw()Turns on or off local client friendly name drawing
- SetFriendlyScramblerAmount()Sets the amount alpha of the friendly scrambler applied
- SetWeaponFriendlyTargeting()Set the weapon lockon completion percentage
- SetWeaponFriendlyTargetLocked()Set the weapon lockon completion percentage
- AimingAtFriendly()Returns true if localclient 0 has crosshairs on friendly
- GetFriendlyScramblerAmount()Returns the amount alpha of the friendly scrambler applied
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).