GSC reference › Built-in
AddSensorGrenadeArea()
Built-in (engine)
Client
Called on: player
Adds new sensor grenade radius indicator to the compass
Signature
<player> AddSensorGrenadeArea(<position>, <handle>)
Called on an entity: player AddSensorGrenadeArea(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| position | Required | origin |
| handle | Required | will be used to remove the sensor |
Example (from Treyarch's docs)
player AddSensorGrenadeArea( sensor.origin, sensor.handle )
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/mp/_threat_detector.csc, line 69
level.sensors[sensorindex].owner addsensorgrenadearea(self.origin, level.sensorhandle);
Related built-ins
- RemoveSensorGrenadeArea()Removes Sensor Grenade Area from the compass
- RemoveAllSensorGrenadeAreas()Removes all sensor grenade areas
- IsThrowingGrenade()Returns true if the player is currently throwing a grenade
- MagicGrenadeType()Fire a 'magic grenade', from the source location towards the destination point.
- isGrenadeDud()Returns if a grenade is a dud
- IsSafeFromGrenade()Returns true/false if actor is within a blast radius of a grenade.
- MakeGrenadeDud()Turns a grenade into a dud
- CanThrowGrenadePos()Checks whether the actor can throw a grenade at a given position.
- DisableGrenadeSuicide()Stops cooked grenades from killing the player.
- GrenadeThrow()Throw a grenade.
- MagicGrenadeManualPlayer()Creates a "Magic" grenade from a player
- MagicGrenadePlayer()Creates a "Magic" grenade from a player.
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).