User Tools

Site Tools


prpl:setshipattribute

<- PRPL reference <- Everything Else 2

SetShipAttribute(shipID, attributeID, value)

ArgumentsResultNotation
[ - ]

Description

Sets attribute “attributeID” of ship “shipID” to value “value”.

Attribute Legend:

0 = “ISENEMY” 1 = “HULLSIZE” 2 = “HULLBUILT” 3 = “CMCOST” 4 = “CMBUILTAMT” 5 = “ISCONNECTEDTOENERGYMINE” 6 = “ISDESTROYED” 7 = “COORDX” 8 = “COORDY” 9 = “PIXELCOORDX” 10 = “PIXELCOORDY” 11 = “ROTATION” 12 = “ROTATIONDEGREES” 13 = “HASAMP” 14 = “HULLWIDTH” 15 = “HULLHEIGHT” 16 = “ENERGY” 17 = “ENERGYCAP” 18 = “SETSHIPMODULESAMMO” 19 = “THRUSTMULTIPLIER”

Examples

		d1 = stack.Pop(); 
	i2 = GetIntFromStack(); 
	i1 = GetIntFromStack(); 
	SetShipAttribute(i1, i2, d1); 
 
prpl/setshipattribute.txt · Last modified: 2025/03/04 22:56 by Argonwolf