LeahTheUnknown Posted May 6, 2017 Share Posted May 6, 2017 I am trying to make a leafblower attachment for a gun. Here's what I've done so far:Made a suppressor mod for the combat shotgun that overrides the projectile with my leafblower projectile. Made an explosion attached to the projectile that spawns a dummy trigger activator with a script Made a form list with all the statics I want to clear. The dummy trigger script is supposed to detect any nearby flat trash or leaf piles on the form list and delete/disable them. it doesn't.Here's the script scriptName _gkx_cleartrash extends ObjectReference formlist property clearlist auto mandatory Event OnInit() objectreference closestpile = Game.FindClosestReferenceOfAnyTypeInListFromRef(clearlist, self, 200) closestpile.disable() closestpile.delete() self.disable() self.delete() EndEvent Am I way out in left field here? Am I missing something pertinent? I'm not a scripting guru, my expertise extends to "looking things up on the wiki", so any help would be appreciated. ~GKX Link to comment Share on other sites More sharing options...
Reneer Posted May 7, 2017 Share Posted May 7, 2017 The primary issue looks to be that the distance parameter in your FindClosestReferenceOfAnyTypeInListFromRef is way too small. Try upping it to 1000 or even 2000. Link to comment Share on other sites More sharing options...
Recommended Posts