Jump to content

F4SE Papyrus Question(s)


silhouett

Recommended Posts

if you simply have skse or f4se properly installed, you can access its commands like if they were built-in to the papyrus. No special moves required. Though as it was stated, f4se doesn't provide many papyrus commands for now.
Link to comment
Share on other sites

if you simply have skse or f4se properly installed, you can access its commands like if they were built-in to the papyrus. No special moves required. Though as it was stated, f4se doesn't provide many papyrus commands for now.

I know that if the commands are there I can use them as I did when I wrote for Skyrim, My problem is what are the commands and where are the explanation and examples of how to use them ?

Link to comment
Share on other sites

There is no official documentation on F4SE-added functions at this point in time. However, most are self-explanatory from their names and return types.

You'll find F4SE additions to Papyrus in <F4SE folder>\_for_test_only\Data\Scripts\Source\F4SE\ (for build 0.2.5). They are located at the end of the script source files.

 

Note that at present time, F4SE has a disclaimer that these functions are not be locked down and may change in future releases.

Examples:

ObjectReference.psc

; Returns all the mods for this reference
ObjectMod[] Function GetAllMods() native

Actor.psc

struct WornItem
	Form item ; Can be ARMO or WEAP
	Form model ; Can be ARMA or WEAP depending on item
	string modelName ; Model override name
	Form materialSwap ; Material swap form
	TextureSet texture ; TextureSet override 
EndStruct

; Slot index is valid from 0-43
; Item can be none and still contain other information at a particular slot
WornItem Function GetWornItem(int slotIndex, bool firstPerson = false) native

; Returns all the mods for the item at the particular index
; returns None if there is no item at this index
ObjectMod[] Function GetWornItemMods(int slotIndex) native

Game.psc

; Returns the current console ref
ObjectReference Function GetCurrentConsoleRef() native global
Link to comment
Share on other sites

 

There is no official documentation on F4SE-added functions at this point in time. However, most are self-explanatory from their names and return types.

 

You'll find F4SE additions to Papyrus in <F4SE folder>\_for_test_only\Data\Scripts\Source\F4SE\ (for build 0.2.5). They are located at the end of the script source files.

 

Note that at present time, F4SE has a disclaimer that these functions are not be locked down and may change in future releases.

 

Examples:

ObjectReference.psc

; Returns all the mods for this reference
ObjectMod[] Function GetAllMods() native

Actor.psc

struct WornItem
	Form item ; Can be ARMO or WEAP
	Form model ; Can be ARMA or WEAP depending on item
	string modelName ; Model override name
	Form materialSwap ; Material swap form
	TextureSet texture ; TextureSet override 
EndStruct

; Slot index is valid from 0-43
; Item can be none and still contain other information at a particular slot
WornItem Function GetWornItem(int slotIndex, bool firstPerson = false) native

; Returns all the mods for the item at the particular index
; returns None if there is no item at this index
ObjectMod[] Function GetWornItemMods(int slotIndex) native

Game.psc

; Returns the current console ref
ObjectReference Function GetCurrentConsoleRef() native global

Cool, I did not think to check the extracted files as I was too busy looking on the internet for answers. Thanks

Link to comment
Share on other sites

  • Recently Browsing   0 members

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