HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Variables....help!!

09-16-2003, 11:05 AM#1
P.H.O.B.O.S
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
Draco
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
P.H.O.B.O.S
ya..i now that..but which varible shpuld i use..te.x unit...unit-Type..
09-16-2003, 10:32 PM#4
RodOfNOD
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
P.H.O.B.O.S
Thx for help...;)