Jump to content

Recommended Posts

Posted

Hey guys, I'm trying to figure out how to properly use EvaluatePackage and ResetAI within a dialogue's fragment. I have my property added successfully: TestCharacterA

When I used the following: pTestCharacterA.evp(), pTestCharacterA.EvaluatePackage(), or pTestCharacterA.ResetAI() the error log states that none of the above are functions.

I am aware F4 and Skyrim are slightly different with some of these types of things but there is no clear documentation regarding this. I am reading the offline version of the Creation Kit Wiki while waiting for a response.

Posted (edited)

Do you have the reference of the NPC added as property, or the NPC base form? Because you can only call that on an Actor (i.e. a reference), not an Actorbase.

edit: oh, and ResetAI is a console command, not a Papyrus function. So without using a script extender function to run console commands, you can't use that from within Papyrus anyway.

Edited by NeinGaming
  • 2 weeks later...
Posted

Insights into stuff like this will emerge naturally if you use vs code with the Papyrus extension (by Joel Day). As with most syntax highlighters, class members or script functions in this case will reveal themselves by just typing a dot after the script name, optionally with some characters you suspect are in the function name.

  • Recently Browsing   0 members

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