Jump to content

[LE] [Help] Make explosion happen at object reference.


Recommended Posts

Would something like this work?

Scriptname NewScript extends ObjectReference

Explosion Property MyExplosion Auto
ObjectReference Property MyMarker Auto

Event OnInIt()

MyMarker = Self.PlaceAtMe(MyExplosion)

EndEvent
Link to comment
Share on other sites

That script didn't work, but this one did. So I'll leave it here for anyone else looking to create an explosion on an xmarker.

I had to use a trigger, and applied this script to it.

 

Scriptname RigmorExplosionTest extends ObjectReference


Explosion Property MyExplosion Auto
ObjectReference Property MyMarker01  Auto  
Actor property MyActor auto


      Event onTriggerEnter (objectReference triggerRef)
Actor actorRef = triggerRef as Actor
if (actorRef == MyActor)
      MyMarker01.placeAtMe(myExplosion)


endif


endEvent
Link to comment
Share on other sites

hey peter, i got it sorted, it was an unusual thing i wanted to do. i wanted an npc to hit a table and disturb the clutter, but they always miss it, or the weapon just ignores the clutter objects.

I needed a way for the npc to "seem" to hit the table making stuff fly about. so it had to be an invisible "push" or "stagger" that script worked a treat ;)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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