ScenEdit AddShip

From Baloogan Campaign Wiki
Revision as of 09:32, 22 November 2014 by Baloogan (talk | contribs) (Baloogan moved page LuaApi:ScenEdit AddShip to ScenEdit AddShip without leaving a redirect)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<syntaxhighlight lang="lua"> ScenEdit_AddShip('[Side Name or ID]', '[Ship Name]', [DBID], ['DEC' or 'DEG'], ['Latitude'], ['Longitude'])

--Random ship, with 3 choices. a = math.random(1,3) if a == 1 then

 ScenEdit_AddShip('Blue', 'Boat', 745, 'DEC', '23.1', '-40.2')

elseif a == 2 then

 ScenEdit_AddShip('Blue', 'Boat', 907, 'DEC', '23.1', '-40.2')

elseif a == 3 then

 ScenEdit_AddShip('Blue', 'Boat', 452, 'DEC', '23.1', '-40.2')

end </syntaxhighlight>