Squirrel/Server/Functions/Blips/Pos

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
{{Squirrel/Title|Blip.Pos}}
+
{{Squirrel/Title|Vehicle.SpawnAngle}}
This ''Blip'' class member returns or sets the position of the blip on the radar.
+
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.
  
 
== 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>Vector Blip.Pos</code>
+
<code>float Vehicle.SpawnAngle</code>
<code>Blip.Pos = Vector newPos</code>
+
<code>Vehicle.SpawnAngle = float angle</code>
  
 
== Arguments ==
 
== Arguments ==
  
* '''newPos''' - A vector representing the new position of the blip.
+
* '''angle''' - This is the new spawn angle
  
 
== Example 1. Returning the value ==
 
== Example 1. Returning the value ==
Line 35: Line 36:
 
== Related Functions ==
 
== Related Functions ==
  
{{Squirrel/Server/Functions/Blips}}
+
{{Squirrel/Server/Functions/Vehicles}}

Revision as of 01:47, 27 September 2010

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

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.

Syntax

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

  1. float Vehicle.SpawnAngle
  1. Vehicle.SpawnAngle = float angle

Arguments

  • angle - This is the new spawn angle

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