silhouett Posted April 6, 2012 Share Posted April 6, 2012 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")endifEndEvent 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 More sharing options...
Tamb0 Posted April 6, 2012 Share Posted April 6, 2012 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 More sharing options...
silhouett Posted April 8, 2012 Author Share Posted April 8, 2012 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 More sharing options...
Recommended Posts