I made an NPC with the following script:
Begin DisabledNPCScript short done if (done==0) disable set done to 1 endif End DisabledNPCScript
Then I made a door, which, once activated, will enable the NPC.
I gave it the following script:
Begin EnableDisabledNPC short done if (done==1) return endif if ( OnActivate == 1 ) DisabledNPC->Enable Activate endif End EnableDisabledNPC
The game complains about the "EXPRESSION" and "Right Eval" which means that "OnActivate" is an incorrect expression and that it's also not defined in the script.
What am I supposed to define it as? It's neither a short, nor a float.
Or is OnActivate simply just broken?