GSC reference › Built-in
GetLinkedEnt()
Built-in (engine)
Server
Called on: entity
Get the entity that the calling entity is linked to
Signature
<entity> GetLinkedEnt()
Called on an entity: entity GetLinkedEnt(...)
Returns
entity
Example (from Treyarch's docs)
linked_ent = self GetLinkedEnt()
Real uses in BO3's scripts
Called 20 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_weap_ball.gsc, line 594
linkedparent = visual getlinkedent(); - scripts/zm/_zm_weap_shrink_ray.gsc, line 475
if(isdefined(self getlinkedent())) - scripts/zm/zm_temple_minecart.gsc, line 978
if(!isdefined(player getlinkedent())) - scripts/shared/scene_shared.gsc, line 419
e_linked = player getlinkedent(); - scripts/shared/util_shared.csc, line 1031
linked_ent = self getlinkedent();
Related built-ins
- IsEntityLinkedToTag()Returns is the entity is linked to the parententity, ( on a specific tag optional )
- GetEnt()Looks up entities by key and name
- GetEntArray()Looks up entities by key and name and a return an array of the matched entities
- GetEntityNumber()Get the entity number of the entity
- GetCurrentWeapon()Gets the current player weapon
- PlayRumbleOnEntity()Plays a rumble on the given entity.
- NewClientHudElem()Create a new hud element for a particular client
- OrientMode()Set the orient mode of this actor.
- LUINotifyEvent()Sends a notify from script to LUI.
- RegisterClientField()Register a client field.
- SetClientUIVisibilityFlag()Sets a HUD visibility flag only on this client
- IsSentient()Checks whether this entity is a sentient, that is normally either an ai actor, ai vehicle or the 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).