Quote:
Originally Posted by MrOmega
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.p: this.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).