Searcherz64 Posted August 9, 2018 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
akiras404 Posted August 9, 2018 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
Searcherz64 Posted August 9, 2018 Author Posted August 9, 2018 On 8/9/2018 at 4:10 AM, akiras404 said: 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
akiras404 Posted August 9, 2018 Posted August 9, 2018 ObjectReference marker = PlaceAtMe(XMarker)WeaponForm.Fire( marker )will fire weapon from marker.
Searcherz64 Posted August 9, 2018 Author Posted August 9, 2018 On 8/9/2018 at 1:38 PM, akiras404 said: ObjectReference marker = PlaceAtMe(XMarker)WeaponForm.Fire( marker )will fire weapon from marker. Ah I misread the Weapon Script documentation - it works now, thank you!
Recommended Posts