User Tools

Site Tools


crpl:docs:setscriptvar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
crpl:docs:setscriptvar [2018/05/10 12:13] – improved notes, added more information Grabzcrpl:docs:setscriptvar [2020/05/29 10:18] (current) – made example code more legible/consistent Sanian
Line 41: Line 41:
  
 :CreateBullet :CreateBullet
- "CRPLCore" CurrentX CurrentY CreateUnit ->unit + CreateUnit("CRPLCore" CurrentCoords) ->unit 
- <-unit "CRBullet.crpl" AddScriptToUnit + AddScriptToUnit(<-unit "CRBullet.crpl") 
- <-unit "CRBullet.crpl" "targetX" <-targetX SetScriptVar + SetScriptVar(<-unit "CRBullet.crpl" "targetX" <-targetX) 
- <-unit "CRBullet.crpl" "targetY" <-targetY SetScriptVar + SetScriptVar(<-unit "CRBullet.crpl" "targetY" <-targetY) 
- <-unit "CRBullet.crpl" "payload" <-payload SetScriptVar + SetScriptVar(<-unit "CRBullet.crpl" "payload" <-payload) 
- <-unit "main" "Custom2" SetImage + SetImage(<-unit "main" "Custom2") 
- <-unit "main" -0.01 SetImagePositionZ + SetImagePositionZ(<-unit "main" -0.01) 
- <-unit "main" self "barrel" GetImageRotation SetImageRotation + SetImageRotation(<-unit "main" self "barrel" GetImageRotation)
 </code> </code>
  
crpl/docs/setscriptvar.txt · Last modified: 2020/05/29 10:18 by Sanian