wiki.sine.space | sinespace

Difference between revisions of "Scripting/SLandmark"

From wiki.sine.space
Jump to: navigation, search
(Created page with "=Public Attributes= {{ScriptFunction|string|Name|()|Landmark's Name|5=<pre></pre>}} {{ScriptFunction|SVector|Position|()|Landmark's Position|5=<pre></pre>}} {{ScriptFunc...")
 
Line 2: Line 2:
  
  
{{ScriptFunction|string|Name|()|Landmark's Name|5=<pre></pre>}}
+
{{ScriptFunction|string|Name|()|Landmark's Name|5=<pre>LandmarkName = Space.Scene.Landmarks[1].Name</pre>}}
  
  
{{ScriptFunction|SVector|Position|()|Landmark's Position|5=<pre></pre>}}
+
{{ScriptFunction|SVector|Position|()|Landmark's Position|5=<pre>LandmarkPosition = Space.Scene.Landmarks[1].Position</pre>}}
  
  
{{ScriptFunction|SQuaternion|Rotation|()|Landmark's Rotation|5=<pre></pre>}}
+
{{ScriptFunction|SQuaternion|Rotation|()|Landmark's Rotation|5=<pre>LandmarkRotation = Space.Scene.Landmarks[1].Rotation</pre>}}
  
  
{{ScriptFunction|bool|SpawnPoint|()|Is this Landmark a spawn point?|5=<pre></pre>}}
+
{{ScriptFunction|bool|SpawnPoint|()|Is this Landmark a spawn point?|5=<pre>LandmarkSpawnPoint = Space.Scene.Landmarks[1].SpawnPoint</pre>}}
  
  
{{ScriptFunction|float|SpawnRadius|()|The size of the radius around the Landmark where players spawn within|5=<pre></pre>}}
+
{{ScriptFunction|float|SpawnRadius|()|The size of the radius around the Landmark where players spawn within|5=<pre>LandmarkSpawnRadius = Space.Scene.Landmarks[1].SpawnRadius</pre>}}
  
  
Line 21: Line 21:
  
  
{{ScriptFunction|SLandmarkType|Type|{ get;set; }|Landmark's Type|5= <pre></pre>}}
+
{{ScriptFunction|SLandmarkType|Type|{ get;set; }|Landmark's Type|5= <pre>LandmarkType = Space.Scene.Landmarks[1].Type</pre>}}
  
  
  
 
{{Scripting Navbox}}
 
{{Scripting Navbox}}

Revision as of 10:04, 27 September 2021

Public Attributes

Name

string Name ()

Landmark's Name

LandmarkName = Space.Scene.Landmarks[1].Name



Position

SVector Position ()

Landmark's Position

LandmarkPosition = Space.Scene.Landmarks[1].Position



Rotation

SQuaternion Rotation ()

Landmark's Rotation

LandmarkRotation = Space.Scene.Landmarks[1].Rotation



SpawnPoint

bool SpawnPoint ()

Is this Landmark a spawn point?

LandmarkSpawnPoint = Space.Scene.Landmarks[1].SpawnPoint



SpawnRadius

float SpawnRadius ()

The size of the radius around the Landmark where players spawn within

LandmarkSpawnRadius = Space.Scene.Landmarks[1].SpawnRadius



Properties

Type

SLandmarkType Type { get;set; }

Landmark's Type

LandmarkType = Space.Scene.Landmarks[1].Type