Jump to content

Trigger Rune/Trap projectile on Impact?


makzombie

Recommended Posts

Posted

I'm using a projectile fired from the player to get the impact location and angle of the surface it impacts with. Rune spells appear to be angled correctly but theirs a slight problem that I need the rune to explode in order to spawn the object that gets the location and angle.

 

From testing, i think that changing the projectile settings from lobber type or alt trigger setting will not return the surface angle.

 

Any ideas how to create a rune spell that automatically explodes on impact and give the correct angle?

Posted

I made a secondary spell effect that creates a object at the target location. That object has a script that spawns a chicken that will cause the rune to trigger instantly.

 

Problem is then getting rid of the script object and the chicken. If i disable() and deletewhenable() them both, it will only delete the first (chicken).

 

Here is the script

Event OnInit()
    objectReference BillyTheMagicalChicken = self.Placeatme(Chicken)
    BillyTheMagicalChicken.Disable()
    BillyTheMagicalChicken.DeleteWhenAble()
    self.Disable()
    self.DeleteWhenAble()
EndEvent

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...