Author Topic: Calling "Projectile Bounce"  (Read 2489 times)

How are you running tests? I thought you couldn't figure out how to bounce the projectile? Or are you using events?

I'm sorry but there is no easy way to do this.

The bounce function creates a new projectile and does not return it's projectile's ID.

I'll write up something and see if it works.

It seems that when I call the bounce function from script, the new projectile spawns at 0 0 0 instead of where it was before it bounced.
Or when you package it. Well, I have no idea on what to do for this.
« Last Edit: April 12, 2011, 02:35:00 AM by Chrono »

Or are you using events?

Yes.

The bounce function creates a new projectile and does not return it's projectile's ID.

Is it possible to cycle through all projectiles?

If so, I could locate it with different criteria.

Is it possible to cycle through all projectiles?

If so, I could locate it with different criteria.
Horrible idea.

I've already got it to bounce twice, but as said in my most recent post, the projectiles are appearing at 0 0 0 instead of it's original location. Not sure if it's the fact I'm calling bounce through script, or if it's because bounce is an engine function and doesn't like being packaged.

If I made the script for a specific weapon, I wouldn't have to package it, right?

The function is for a projectile object, not a projectile class or datablock. Therefore you have to package it.

delete the projectile, then recreate it, then apply appropriate speed in the appropriate direction. AFAIK there's no way to redirect a projectile.
Correct.
Watch cho back, FORUM POLICE, they'll get cha.
On Topic: Now I'm not much of a scripter so I can't help you with any much other than motivation, please do this. lol naw but it would be very cool.
« Last Edit: April 20, 2011, 04:27:55 AM by White Tiger (6224) »

Watch cho back, FORUM POLICE, they'll get cha.
On Topic: Now I'm not much of a scripter so I can't help you with any much other than motivation, please do this. lol naw but it would be very cool.
...
Okay what the hell.
I'll just assume this was a bump.

IIRC Trigun made a weapon that shot projectiles at the engine limit instead of raycasting, but he said something about how it was a bad idea. If you care to pursue this further, I would recommend talking to him.