User Tools

Site Tools


crpl:docs:getscriptvar

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Script Commands

getScriptVar

ArgumentsResultNotation
Unit UID, script name, var name i1 s1 s2 – d1

Description

Gets the named variable on the specified unit script.

List of variables for existing units(for builds 1.66 and newer):

Emitter

 STARTTIME
 FINISHTIME
 PRODUCTIONINTERVAL
 PRODUCTIONAMT

SporeTower

 STARTTIME
 WAVEINTERVAL
 WAVECOUNT
 SPOREPAYLOAD

AETower

 RANGE

RunnerNest

 SPAWNINTERVAL
 MAXPOPULATION
 MOVESPEED
 RUNNERMAXHEALTH
 CREEPERPAYLOAD

Inhibitor

 STARTTIME
 PRODUCTIONINTERVAL
 PRODUCTIONAMT
 RANGE

ResourcePack

 AMT
 MAXAMT
 RESOURCETYPE {'ENERGY', 'ORE', 'AETHER'}
 

Examples

@CreateBullet

<-unit "CRBullet.crpl" "targetX" GetScriptVar trace


:CreateBullet
	"CRPLCore" CurrentX CurrentY CreateUnit ->unit
	<-unit "CRBullet.crpl" AddScriptToUnit
	<-unit "CRBullet.crpl" "targetX" <-targetX SetScriptVar
	<-unit "CRBullet.crpl" "targetY" <-targetY SetScriptVar
	<-unit "CRBullet.crpl" "payload" <-payload SetScriptVar
	<-unit "main" "Custom2" SetImage
	<-unit "main" -0.01 SetImagePositionZ
	<-unit "main" self "barrel" GetImageRotation SetImageRotation 
crpl/docs/getscriptvar.1390585024.txt.gz · Last modified: 2014/10/01 15:02 (external edit)