Jump pad Tutorial
Created By: | Soul Keeper |
eMail: | errorabove@hotmail.com |
Difficulty Scale: | Easy |
void() target_system = { local float mega; // variable to see how far to find enemies if (self.health >= 100) // Used to set how far to find enemies mega = 600; else if (self.health >= 90) mega = 500; else if (self.health >= 80) mega = 400; else if (self.health >= 70) mega = 300; else if (self.health >= 60) mega = 200; else mega = 100; local entity en1; en1 = findradius (self.origin, mega); // find you some enemies while (en1) { if ((en1.takedamage == DAMAGE_AIM && en1 != self) && visible(en1)) { particle (en1.origin, '0 0 20', 244, 20); // make my beautiful effects centerprint (self, "Enemy Target"); // reports any enemies found } en1 = en1.chain; // do over and find another } };Step 2:
target_system ();Step 3: