let something walk

caniboy

New Member
Reaction score
2
hi guys,
i just wanted to know how can i let a creep movie from 1 point to 1 point...
(Creep is not spawned!! It spawn after 30 Seconds game time)
Thank you very much for helping me
 

perkeyone

something clever
Reaction score
71
do you want it to move without attacking anything or would you like it to attack any units it walks past?
 

Razed

New Member
Reaction score
44
When you create a unit after a period of time you could store him into a variable or use: Order (Last Created Unit) to move to Region <000>.

Only use the second option if it's happening at the some moment without any waits (or it may bugg up with other spawns).

Or you could create

Code:
Events:  Elapsed Game Time is 30 seconds.
Conditions: 
Actions:  Set Temp_Point = Center of (Region <000>)
Create 1 Footman for Player 1 at Temp_Point facing (default degrees)
Set Unit1 = Last Created Unit
Order Unit1 to move to Center of (Region <001>)
custom script: call RemoveLocation(udg_Temp_Point)

Something like that should do the trick (if you don't care about leaking, don't use Temp_Point and custom script).
 

caniboy

New Member
Reaction score
2
i want that if a unit walk to a point and if he see a other enemy that he kill it and continue the way maybe Razed's post help me i try it.
Thank you very much
(what means leaking)
 

NaPzt3R

You can change this now in User CP.
Reaction score
38
Just change
Code:
Order Unit1 to move to Center of (Region <001>)
to
Code:
Order Unit1 to [COLOR="Red"]attack-move[/COLOR] to Center of (Region <001>)
 

CaptDeath

New Member
Reaction score
103
@napzter that leaks
a leak is a thing in wc3 like a center of region well oredering a unit to go there that point is sotred in wc3 even though we have no idea why and cant acces besides from making a new one so if you use a varriable then destroy it the memory that normally would have been used is now deleted so you dont use anny access R.A.M.
and isnt it
Code:
Events:  Elapsed Game Time is 30 seconds.
Conditions: 
Actions:  Set Temp_Point = Center of (Region <001>)
Create 1 Footman for Player 1 at Temp_Point facing (default degrees)
Set Unit1 = Last Created Unit
Order Unit1 to move to Temp_Point
custom script: call RemoveLocation(udg_Temp_Point)
also see this thread
 

Nexor

...
Reaction score
74
there is an action called order unit group, there you can set the group of the units, but unitgroups also leak, so firstly you have to set it into a variable, and after using destroy it using custom script (Custom Script: call DestroyGroup(udg_<Your Group>)
 

perkeyone

something clever
Reaction score
71
Code:
Events:  Elapsed Game Time is 30 seconds.
Conditions: 
Actions:  Set Temp_Point = Center of (Region <001>)
[COLOR="Lime"]for every integer from 1 to 10[/COLOR]
Create 1 [COLOR="Lime"]"zombie"[/COLOR] for Player 1 at Temp_Point facing (default degrees)
Set Unit1 = Last Created Unit
Order Unit1 to move to Temp_Point
custom script: call RemoveLocation(udg_Temp_Point)

green is free hand stuff i added
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top