Searcherz64 Posted August 9, 2018 Share Posted August 9, 2018 (edited) I'm trying to get a simple explosion with projectile working: Explosion Property LibertyPrimeLaserExplosionW40k Auto ConstSTATIC Property SPCMarkerOrbital Auto ConstEvent OnEffectStart(Actor target, Actor caster)Debug.Notification("spawn")ObjectReference marker = caster.PlaceAtMe(SPCMarkerOrbital)marker.MoveTo(caster, 0, 1000, 500)marker.PlaceAtMe(LibertyPrimeLaserExplosionW40k)EndEvent But it doesn't seem to be working - the projectile looks like it hits something right next to it: When I toggle collision off however (TLC in console), it works: And then the instant I turn it back on: Does anyone know how to fix this? Edited August 9, 2018 by Searcherz64 Link to comment Share on other sites More sharing options...
akiras404 Posted August 9, 2018 Share Posted August 9, 2018 Problem like this seems to occur when you use PlaceAtMe or Weapon.Fire to place Projectile or Explosion.In my case, roundabout route like below works.Weapon.Fire( marker ) -> Projectile_Parent (explode with alt. trigger 0.0s) -> Explosion (spawn projectiles) -> Projectile_Child Link to comment Share on other sites More sharing options...
Searcherz64 Posted August 9, 2018 Author Share Posted August 9, 2018 Problem like this seems to occur when you use PlaceAtMe or Weapon.Fire to place Projectile or Explosion.In my case, roundabout route like below works.Weapon.Fire( marker ) -> Projectile_Parent (explode with alt. trigger 0.0s) -> Explosion (spawn projectiles) -> Projectile_Child Sorry, am a bit confused by a few things with this, the first part being Weapon.Fire. I initially thought of using Weapon.Fire but not sure how I would get a Weapon type since trying to use PlaceAtMe(WeaponForm) only gives back an ObjectReference and not a Weapon Link to comment Share on other sites More sharing options...
akiras404 Posted August 9, 2018 Share Posted August 9, 2018 ObjectReference marker = PlaceAtMe(XMarker)WeaponForm.Fire( marker )will fire weapon from marker. Link to comment Share on other sites More sharing options...
Searcherz64 Posted August 9, 2018 Author Share Posted August 9, 2018 ObjectReference marker = PlaceAtMe(XMarker)WeaponForm.Fire( marker )will fire weapon from marker. Ah I misread the Weapon Script documentation - it works now, thank you! Link to comment Share on other sites More sharing options...
Recommended Posts