API:EShipDirection
From STNE Wiki
(Difference between revisions)
Jacksfh (Talk | contribs)
(Created page with "{{apiMenu}} EShipDirection is an enumerator that simplifies the navigation of ships by script. It is used exclusively as a parameter of [[API:...")
(Created page with "{{apiMenu}} EShipDirection is an enumerator that simplifies the navigation of ships by script. It is used exclusively as a parameter of [[API:...")
Latest revision as of 21:22, 4 May 2020
Scripting Portal | Contents | API Reference | Index |
---|
EShipDirection is an enumerator that simplifies the navigation of ships by script. It is used exclusively as a parameter of CBaseShipManager.Fly() and is therefore suitable for flying via script even without Feature Pack.
Example
Var myShip As New CMyShip(12345); myShip.Action.Fly(10,EShipDirection.Up);
In the example above the ship flies up 10 sectors. Instead of the EShipDirection.Up enumerator its value can be used just as well. The following code does exactly the same as the previous example
Var myShip As New CMyShip(12345); myShip.Action.Fly(10,0);
Values
The following values are assigned for EShipDirection
Name | Value |
---|---|
Up | 0 |
Down | 1 |
Left | 2 |
Right | 3 |