The issue here is that the second map does not load. Since I'm pretty new to the editor and scripting it could be a little bit silly. Anyways, the error that shows up is:
Spoiler below!
FATAL ERROR
Couldn't load (map name and directory here)
ExecuteString (1,1): ERR : No matching signatures to 'OnLeave()'
main (6, 40) : ERR : Expected data type
I did try some things, but I'm kinda lost here so any help is appreciated!
p.s: looks like I posted in the wrong section. my bad.
(This post was last modified: 10-16-2016, 10:00 PM by Ubermensch.)
The issue is that your parameters for your "lookatcorpse" function are incorrect. You're not supposed to edit anything in the parameters after you copy them to your script because they need to match what is required by the function call.
SetEntityPlayerLookAtCallback requires these parameters:
void MyFunc(string &in asEntity, int alState)
So that's what you must use. Replace the 1 with "int alState".
Also, in your OnStart, you didn't specify which entity the player must look at to call this event, so it will never happen.
(10-16-2016, 10:24 PM)Mudbill Wrote: The issue is that your parameters for your "lookatcorpse" function are incorrect. You're not supposed to edit anything in the parameters after you copy them to your script because they need to match what is required by the function call.
SetEntityPlayerLookAtCallback requires these parameters:
void MyFunc(string &in asEntity, int alState)
So that's what you must use. Replace the 1 with "int alState".
Also, in your OnStart, you didn't specify which entity the player must look at to call this event, so it will never happen.
Hm... Thanks! I'll let you know how it went when I modify the script.
(This post was last modified: 10-16-2016, 10:53 PM by Ubermensch.)