makzombie Posted October 27, 2015 Posted October 27, 2015 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?
makzombie Posted October 27, 2015 Author Posted October 27, 2015 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.