User Tools

Site Tools


4rpl:commands:getunitposition

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
4rpl:commands:getunitposition [2022/06/21 10:18] – [Examples] workaround for no return value Karsten754rpl:commands:getunitposition [2022/06/21 10:41] – More efficient method Karsten75
Line 20: Line 20:
 GetUnitPosition(<-UID) ->pos GetUnitPosition(<-UID) ->pos
 </code> </code>
-<=[[4rpl:start| Index]] 
  
  
Line 29: Line 28:
   
 :unitPos :unitPos
- StackSize ->stackSize   # be careful that this variable is not used in other code.  +    StackSize ->size 
- GetUnitPosition +    GetUnitPosition 
- If (Stacksize <-stackSize EQ+    If (Stacksize <-size NEQ
- Return +        V3(-1 -1 -1) 
- else +    endif
- V3(-1 -1 -1) +
- endif+
 </code> </code>
 +
 +<=[[4rpl:start| Index]]
 +
4rpl/commands/getunitposition.txt · Last modified: 2023/01/19 09:28 by Karsten75