Jump to content

Trigger Script with Collision Marker


silhouett

Recommended Posts

I am trying to setup a CollisionMarker that when the player passes through it triggers the script attached to it. Thanks for any help in advance http://forums.nexusmods.com/public/style_emoticons/dark/biggrin.gif

 

I tried settings L_Trigger L_nonCollidable etc

 

The script is

 

 

Scriptname zzwall extends ObjectReference

 

Event OnTriggerEnter(ObjectReference akActionRef)

Debug.Notification(akActionRef + " Triggered wall!")

if (akActionRef == Game.GetPlayer())

Debug.Notification(" is player")

endif

EndEvent

 

Event OnTrigger(ObjectReference akActionRef)

Debug.Notification(akActionRef + " just hit us!")

if (akActionRef == Game.GetPlayer())

Debug.Notification(" is player")

endif

 

EndEvent

Link to comment
Share on other sites

I am trying to setup a CollisionMarker that when the player passes through it triggers the script attached to it...

I don't think it's a collision marker you need to set up. I think it's a primitive that you need.

 

Click the icon with the 3D box that has a P in it. From the menu that pops up, select defaultActivateSelfTRIG. Adjust size and rotation to suit and add your script. Link it to whatever you want it to activate.

 

I think that should work, but I've never tried it with a script

Link to comment
Share on other sites

Thank You, I figured it out after playing with those buttons :)

 

I am trying to setup a CollisionMarker that when the player passes through it triggers the script attached to it...

I don't think it's a collision marker you need to set up. I think it's a primitive that you need.

 

Click the icon with the 3D box that has a P in it. From the menu that pops up, select defaultActivateSelfTRIG. Adjust size and rotation to suit and add your script. Link it to whatever you want it to activate.

 

I think that should work, but I've never tried it with a script

Link to comment
Share on other sites

  • Recently Browsing   0 members

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