Author Topic: Oncollision Function Applying to Everything  (Read 733 times)

I was wondering if theres an oncollision function that would work on all weapon projectiles when they collide. I was thinking...

Code: [Select]
Function ProjectileData::OnCollision(%this, %obj, %col, %fade, %pos, %normal)
{
//Stuff in function goes here
}

I wasn't sure though so if you could help me out, I'd appreciate it a lot.

I think the best way to figure out if something works is by trying it. If you just can't wait, highlight the text here:

Spoiler
Omg it does!!!11one

Thanks Ephi, The reason I asked here was my function was messing up. I didn't know whether I made bad code or the whole function was wrong. Thanks again.