Jump to content

Trigger Collsion meshes and RayCasts in Papyrus


0AndyVan0

Recommended Posts

So I am setting up a Tesla Coil defense tower and am wondering if you can set up Meshes to work as TiggerOnEnter objects, like if an entity walks into the box the script will check to see if they are enemies or allies, and attack it if it is an enemy. So the Tesla Coil tower won't be killing everything that gets near it. I was wondering if you can use Raycasts as you would in Unity ?

Link to comment
Share on other sites

http://www.creationkit.com/fallout4/index.php?title=OnTriggerEnter_-_ObjectReference

http://www.creationkit.com/index.php?title=Complete_Example_Scripts#A_Trigger_That_Detects_When_The_Player_Enters

 

I think you can use an Activator as a trigger, so you could simply make the Tower using an Activator form rather than as a movable static. Alternatively, you could add a trigger primitive over the tower and add a small trigger script to it that activates a script on your tower when fired.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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