User Tools

Site Tools


modding:function:objgetnameditems

Discuss this page on this pages TalkPage

objGetNamedItems

See objGetNamedItems at Xelerus

Syntax (objGetNamedItems obj name)
Arguments obj: obj you want to get weapon of
name: string defining what item you want to get
Returns list
Category 1.0, item, spaceobject
Description Returns data on one of the ships selected weapons

Example

(objGetNamedItems obj name) -> list of items

If name == 'selectedWeapon, returns a list of one item, where the item is the selected weapon.

If name == 'selectedLauncher, returns a list of one item, where the item is the currently installed launcher.

If name == 'selectedMissile, returns a list of one item, where the item is the selected missile. Returns Nil if no missiles installed. If the launcher does not use missiles (e.g., DM600), then returns the installed launcher.

Return to Functions list

modding/function/objgetnameditems.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1