This is an old revision of the document!
Arguments | Result | Notation |
---|---|---|
Unit UID, script name, var name | i1 s1 s2 – d1 |
Gets the named variable on the specified unit script.
@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