Author Topic: Make things happen when projectile comes in contact with a player  (Read 781 times)

What function is called when a projectile makes contact with another object. How can I limit this to other players only? ProjectileData::Damage wont work for this.

Package function ProjectileData::onCollision(%this, %obj, %col, %fade, %pos, %normal, %velocity). %obj is the projectile and %col is the object collided with, so you should do an if(%col.getClassName() $= "Player") or if(%col.getType() & $Typemasks::PlayerObjectType) check first. Replace ProjectileData with the name of your projectile datablock and make sure you call the parent.

Thanks zebo,
Zebo is love, Zebo is life

Thanks zebo,
Zebo is love, Zebo is life
What's with this Zebo nonsense? It's Zeblote. The L come before the O, so if you did shorten it, it would be Zeblo.