Collision Detection

Volte

Member!
Joined
Jul 4, 2003
Messages
23
Reaction score
0
Website
Visit site
Hey again.

I've been messing around with WWE, and I have been trying to make it so that if two of the same animals (creeps, lets say a rat for instance) come within a certain distance from another creature of the same type (rat) it would create another one of the same type (rat) somewhere on the map. Now of course this new creature (rat) will be bound to the same rules as its parents. There for the trigger can't be bound to specific Creeps, it needs to be dynamic.

I am not looking for the whole script or anything, just a knowledgeable nudge in the right direction.
 

Volte

Member!
Joined
Jul 4, 2003
Messages
23
Reaction score
0
Website
Visit site
This is what I have so far:

Events:
Time - Every 1.00 seconds of game time
Conditions:
(Unit-type of (Random unit from (Units of type Rat))) Equal to (Unit-type of (Random unit from (Units within 100.00 of (Position of (Matching unit)))))
Actions:
Unit - Create 1 Rat for Neutral Passive at (Center of Region 000 <gen>) facing (Random angle) degrees
 

Volte

Member!
Joined
Jul 4, 2003
Messages
23
Reaction score
0
Website
Visit site
Heh, yea it was kinda weird how I said it.

every second the game checks each creature on the map (which is never the same) to see if a similar creature (meaning the same kind) is within a set distance (say 100) and if so, create another creature of the same type somewhere on the map.

One Word: Reproduction.

Thanks :D
 

New threads

Top