Jump to content

Cant add script to actor


Recommended Posts

Hey guys. I'm trying to add a script to an actor. Specifically, a duplicated lvlferalghoul but the box to add a script is greyed out, as shown in the image. Any ideas how to add a script to it?

 

Alternatively, if you are able to tell me how I can run an OnDeath event on script on an activator button, I can use that instead. I'm basically trying to detect when the player has killed an enemy and run a event in another script.

 

 

Link to comment
Share on other sites

I think it's because it has another actor as template.

 

There are several ways on how you can detect when that particular actor gets killed. You can use remote event to detect that actor's death event or make your custom event.

 

Take a look at this articles:

https://www.creationkit.com/fallout4/index.php?title=Remote_Papyrus_Event_Registration

https://www.creationkit.com/fallout4/index.php?title=Custom_Papyrus_Events

 

If you explain what you want to do in more detail, I can help more.

Link to comment
Share on other sites

I think it's because it has another actor as template.

 

There are several ways on how you can detect when that particular actor gets killed. You can use remote event to detect that actor's death event or make your custom event.

 

Take a look at this articles:

https://www.creationkit.com/fallout4/index.php?title=Remote_Papyrus_Event_Registration

https://www.creationkit.com/fallout4/index.php?title=Custom_Papyrus_Events

 

If you explain what you want to do in more detail, I can help more.

 

Thank you! I ended up using the remote event technique! (y)

Link to comment
Share on other sites

 

I think it's because it has another actor as template.

 

There are several ways on how you can detect when that particular actor gets killed. You can use remote event to detect that actor's death event or make your custom event.

 

Take a look at this articles:

https://www.creationkit.com/fallout4/index.php?title=Remote_Papyrus_Event_Registration

https://www.creationkit.com/fallout4/index.php?title=Custom_Papyrus_Events

 

If you explain what you want to do in more detail, I can help more.

 

Thank you! I ended up using the remote event technique! (y)

 

Ok, just be noted (I suppose you have made property and pointed to that Actor) that when you point property at a reference, it becomes persistent, that's not bad for one actor, but may cause problems if you have many.

 

Read this article for more info: https://www.creationkit.com/fallout4/index.php?title=Persistence_(Papyrus)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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