Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: pawel345 on November 24, 2013, 04:28:15 AM

Title: How to script AoO like effect?
Post by: pawel345 on November 24, 2013, 04:28:15 AM
Especially the mass one since the convert is easy and I guess you can make freeze using SetPinField and the circular pattern algorithm but how to do the mass one? 
Title: Re: How to script AoO like effect?
Post by: Clean0nion on November 24, 2013, 08:04:45 AM
I suppose you could make a circle and use <-x <-y 9 SetTerrain then make a smaller circle within that and do <-x <-y 1 SetTerrain. Then just do <-x <-y 0 SetCreeper and:
<-x <-y GetUnitsInRange 0 do
   <-x <-y GetUnitAt ->uid
   <-uid 2 Destroy
loop

something like that
You might have to use SetPinField in that area because it's a lot of operations to do in a single frame and that could affect the gameplay.