GSC reference › Built-in
SetDrawOwnerName()
Built-in (engine)
Client
Called on: entity
Draws the entity's owners name above the entity.
Signature
<entity> SetDrawOwnerName(<bool>, [bool])
Called on an entity: entity SetDrawOwnerName(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| bool | Required | Enable/Disable using the owners name. |
| bool | Optional | Whether to always draw the name rega |
Example (from Treyarch's docs)
entity SetDrawOwnerName( true, true )
Real uses in BO3's scripts
Called 2 times in the decompiled scripts. A few, zombies first:
- scripts/mp/gametypes/prop.csc, line 167
player.prop setdrawownername(1, spectating); - scripts/mp/gametypes/prop.csc, line 178
player.prop setdrawownername(0, spectating);
Related built-ins
- SetDrawName()Sets the drawnname of client ent
- SetFriendlyNameDraw()Turns on or off local client friendly name drawing
- GetRootMapName()Returns the root map of a mission
- SetOwner()Sets the entity owner.
- SetClientNameMode()Alters the way that the player name is updated, to prevent cheating by spectators altering their name to communicate with active players.
- GetOwner()Get an entity's owner
- SetPlayerNameString()Set the player name string for a HUD element
- SetDrawInfrared()Draw this entity using infrared material when using infrared scope.
- GetMpDialogName()Get the name of the mpdialog bundle of the currently associated character body
- GetVehicleOwner()Returns the owner of this particular vehicle.
- GetMissileOwner()Returns the entity that owns this missile
- GetMissionName()Returns the name of the mission this map is part of
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).