| 09-16-2003, 11:05 AM | #1 |
i realy sucks on Variables...so i need som help.. how i do so a unit is a Variable..and he is dont on the map....Here is the Trigger i made ============================================== Unit - Order (Last Created Unit) to Move to ((Positon of IceMage) offset by 1000.00 towards (Angle From (Positon of (Triggering unit)) to (Target point of issued order)) degrees) ============================================== EDIT:IceMage is the Unit..and i whant him to be a Variable.. |
| 09-16-2003, 01:45 PM | #2 |
Use the set variable trigger action. Press Ctrl+B in the trigger editor to bring up the variable editor. From there, create variable and make it a unit variable. Then use the set variable action at map initialization or something before the trigger runs. From then on, you can refer to the unit through the variable. :D |
| 09-16-2003, 09:22 PM | #3 |
ya..i now that..but which varible shpuld i use..te.x unit...unit-Type.. |
| 09-16-2003, 10:32 PM | #4 |
To assign a unit to a variable u need to make a variable of type UNIT. so if i have MyUnit = Unit then i can do a setvariable MyUnit = LastCreatedUnit Good luck. I would suggest you do a search on this site for map making tutorials. |
| 09-17-2003, 10:01 AM | #5 |
Thx for help...;) |
