HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit within range..............?

08-29-2003, 12:07 AM#1
35263526
THIS MAY SEEM LIKE A QUESTION ABOUT Z-TARGETING BUT IT REALLY ISNT!!!!!!!!!!

Time for another question for my RPG adventure.

I have created a hit-targeting system for my RPG which creates a unit and sends it in the direction the hero is facing. I got the firing all wrapped up, but now I need a hit trigger.

After making the projectile unit, it sets a unit variable Bullet to it. But for some reason the unit within range event won't let me use unit variable (A unit comes within 256 of =unit=) =unit= being where I want my Bullet variable.

Could someone either please give me a way to work so that when the projectile touches a unit (I was gonna use 50 as the range), it runs the actions I want.
08-29-2003, 12:09 AM#2
Draco
You just need to use a general event and then use conditions to check for variables.
08-29-2003, 12:11 AM#3
35263526
I assume you're talking about a Generic Unit Event. If so, which one. I can't find one that would work. (maybe i'm just being stupid)
08-29-2003, 06:29 AM#4
Zoizite
You can't do unit in range event with generic units.

The only way i've found to do it is make a periodic event, and then use Ifs to check if the unit is in range.