User Tools

Site Tools


modding:function:shprefuelfromitem

Discuss this page on this pages TalkPage

shpRefuelFromItem

See shpRefuelFromItem at Xelerus

Syntax (shpRefuelFromItem ship itemStruct)
Arguments ship: The ship that want to refuel from an item.
itemStruct: The item you want to use.
Returns condition: True if successful, Nil otherwise.
Category item, ship
Description Refuels the ship from the given item struct.

Example

(shpRefuelFromItem gplayership (itmCreate &itHelium3FuelRod; 1))

Adds 2500 to the player's fuel. Return to Functions list

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