SigmondDroid Posted January 24, 2021 Share Posted January 24, 2021 Is there any way to get a reference to an object that's been hit by a projectile fired from your weapon? Link to comment Share on other sites More sharing options...
ashtonlp101 Posted January 25, 2021 Share Posted January 25, 2021 (edited) Sorry, I'm a little unclear on what you're asking. Do you want the projectile type to return in the script, or do you want something to happen when a specific projectile hits something? If the later, then you can simply type: Begin OnHitWith *ProjectileID* Edited January 28, 2021 by ashtonlp101 Link to comment Share on other sites More sharing options...
SigmondDroid Posted January 27, 2021 Author Share Posted January 27, 2021 Yes, that sounds like what I'm looking for. Will have to give it a try.What's the syntax for getting the ref id to the object hit in the OnHit script? Link to comment Share on other sites More sharing options...
dubiousintent Posted January 29, 2021 Share Posted January 29, 2021 See the "JIP Functions" under "Actor Functions": such as "GetHitProjectile", "GetHitAttacker", and "GetHitWeapon" (depending upon your exact purpose). -Dubious- Link to comment Share on other sites More sharing options...
Recommended Posts