Builder scripts

From Spring
Revision as of 20:07, 10 November 2012 by Emmanuel (talk | contribs) (builder)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

this script is requested for enabling the construction of unit by a vehicule

this scripts are not compatible with transportation script (not sure who is winner when both)

note : construction by factory request a diferent kind of script

basic script:

function script.StartBuilding(y0,x0)

SetUnitValue(19,1)-- ask evacuation of area

SetUnitValue(5,1)--start emiting nano

end

function script.StopBuilding()

SetUnitValue(5,0)--stop emiting nano

SetUnitValue(19,0)--stop asking evacuation of area

end

advanced script: