Squirrel/Server/Functions/Blips/Pos

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Undo revision 1648 by Juppi (Talk) - Fixing a copypaste fuckup)
Line 1: Line 1:
{{Squirrel/Title|Vehicle.SpawnAngle}}
+
{{Squirrel/Title|Blip.Pos}}
This ''Vehicle'' class member returns or sets the spawn angle of the vehicle. The vehicle's z-rotation will be set to this value when it spawns.
+
This ''Blip'' class member returns or sets the position of the blip on the radar.
  
 
== Syntax ==
 
== Syntax ==
 
 
You can either return or set a new value using this member:
 
You can either return or set a new value using this member:
<code>float Vehicle.SpawnAngle</code>
+
<code>Vector Blip.Pos</code>
<code>Vehicle.SpawnAngle = float angle</code>
+
<code>Blip.Pos = Vector newPos</code>
  
 
== Arguments ==
 
== Arguments ==
  
* '''angle''' - This is the new spawn angle
+
* '''newPos''' - A vector representing the new position of the blip.
  
 
== Example 1. Returning the value ==
 
== Example 1. Returning the value ==
Line 36: Line 35:
 
== Related Functions ==
 
== Related Functions ==
  
{{Squirrel/Server/Functions/Vehicles}}
+
{{Squirrel/Server/Functions/Blips}}

Revision as of 04:05, 28 September 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This Blip class member returns or sets the position of the blip on the radar.

Syntax

You can either return or set a new value using this member:

  1. Vector Blip.Pos
  1. Blip.Pos = Vector newPos

Arguments

  • newPos - A vector representing the new position of the blip.

Example 1. Returning the value

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
  1.  
  2. -- todo
  3.  

Notes

Example notes and used functions here.

Example 2. Setting a new value

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
  1.  
  2. -- todo
  3.  

Notes

Example notes and used functions here.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox