Jump to content

How do I see the actual actor.psc function scripts?


Recommended Posts

Posted

In actor.psc I only seem to be able to find the list of functions and events, not their actual scripts.

 

For example:

 

; Event that is triggered when this actor finishes dying
Event OnDeath(Actor akKiller)
EndEvent

 

How can I see (modify) the actual "ondeath" event script?

 

Posted

The actor.psc contains the definition of the possible functions and events you can call on an actor.

You can then create your own script, that will extend Actor, attch it to an actor or an objectreference, implement your code inside, and it will be used.

 

The base source files just have the definition of the functions, nothing else (except a few commodity functions that are written in papyrus and not in C++)

Posted
17 minutes ago, CPU said:

The actor.psc contains the definition of the possible functions and events you can call on an actor.

You can then create your own script, that will extend Actor, attch it to an actor or an objectreference, implement your code inside, and it will be used.

 

The base source files just have the definition of the functions, nothing else (except a few commodity functions that are written in papyrus and not in C++)

 

Ok... so that means the actual ondeath event code is written in C++ and we don't have access to them?

 

The problem I am trying to solve is to have the NPC's not close their eyes on death, or on setunconscious. I was hoping I could find the eye closing action within the ondeath event script.

 

Posted

The event is just sent when an actor dies.

And it is done by the game engine, that is C++

 

So, no, you cannot really alter this code.

 

Check if a mod alters the eyes or anything else. Usually dead NPCs do have their eyes closed.

Posted
22 hours ago, CPU said:

Check if a mod alters the eyes or anything else. Usually dead NPCs do have their eyes closed.

 

Yep, that's the point. I want them to die with their eyes open, and I don't know how to achieve that

 

Posted

Add a script to the actors, (ActorBase) and then on the OnDeath you can try to use something similar to the Skyrim MFC console to keep the eyes open.

But I don't know if such plugin exists for FO4.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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