Difference between revisions of "ScenEdit AddShip"

From Baloogan Campaign Wiki
Jump to: navigation, search
 
m (Baloogan moved page LuaApi:ScenEdit AddShip to ScenEdit AddShip without leaving a redirect)
 
(No difference)

Latest revision as of 09:32, 22 November 2014

<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>