View Single Post
  #6  
Old 01-20-2011, 06:45 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by MrOmega View Post
I currently do use it in the gani and how with TServerProjectile do I determine which projectile needs to modified?
Give each projectile a unique identifier in the parameters, and then check the parameters to verify that it is the correct projectile. There are quite a few ways to find projectile objects. Here is one example:
PHP Code:
for (temp.pthis.level.projectiles) {
  if (
temp.p.params[0] == "specialprojectile") {
    
temp.p.destroy();
  }

Or something of this sort. I don't quite remember how I was doing it on Unholy Nation about 4 years ago.

This will destroy any projectile in the level with the parameter "specialprojectile."

Another great way to capture the projectile object is by using onPlayerShoots(player, projectile).
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”

Last edited by Tigairius; 01-20-2011 at 06:55 AM..
Reply With Quote