Blip.Owner

From Liberty Unleashed Wiki
Revision as of 00:22, 29 September 2010 by Juppi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This Blip class member returns a pointer to the owner of this blip, or null if the blip is visible for everyone.

Syntax

  1. Player Blip.Owner

Arguments

  • none

Example

This example function will return the name of the blip owner (or "Unknown" if the blip is a global blip) when called.

  1.  
  2. // This is a custom function
  3. function GetBlipOwnerName( blip )
  4. {
  5. if ( blip.Owner ) return blip.Owner.Name;
  6. return "Unknown";
  7. }
  8.  

Notes

The function Player.Name was used in in this example. More info about it in the corresponding page.

Note that this function is a completely custom function, you'll have to call it using your own script.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox