HowToAddShips

From SfzWiki
Revision as of 11:16, 12 July 2007 by Ghoulsblade (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • use the shipeditor to create a ship and save it,
  • edit data/plugins/common.objecttypes.lua
  • copy and adjust a line like
 RegisterObjectType("stuff/customship/firefly",		"stuff/customship",	{ingame_name="firefly",		gfx_shipfile="firefly.lua", hitrad=10, bHasHangar=true,hp=500, shield_max=500, cargo_max=1000, weapons={["weapontype/laser/red"]=1}  })