GSC reference › Built-in
SetLocalRadarPosition()
Built-in (engine)
Client
Sets the position of a client's local radar.
Signature
SetLocalRadarPosition(<localClientNum>, <position>)
Parameters
| Name | Required? | Details |
|---|---|---|
| localClientNum | Required | Client number to set local radar position on |
| position | Required | New position of the local radar |
Example (from Treyarch's docs)
SetLocalRadarPosition( localClientNum, self.origin )
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/shared/weapons/_acousticsensor.csc, line 181
setlocalradarposition(j, level.acousticsensors[i].sensorent.origin);
Related built-ins
- SetLocalRadarEnabled()Sets whether a client's local radar is enabled.
- PlaySoundAtPosition()Play the sound alias from a position
- GetLocalPlayer()Get the local player predicted centity.
- PlayLocalSound()Plays a sound locally
- PositionQuery_Source_Navigation()Generate points around <origin>, between <minSearchRadius> and <maxSearchRadius> and within <halfHeight> height difference.
- GetLocalPlayers()Get an array of all the local players
- IsLocalPlayer()Returns true if the ent it's called on is a local player.
- PlayRumbleOnPosition()Play a rumble on the given position
- GetLocalClientNumber()Returns the local client number.
- PositionWouldTelefrag()Returns true if the passed in origin would telefrag a player if another player was spawned there.
- UsePosition()Override where the actor should run to.
- PositionQuery_Filter_InClaimedLocation()Check if the locations are inside other sentients claimed locations <entity>.inClaimedLocation.
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).