(11-04-2012, 08:18 PM)Robosprog Wrote: (11-03-2012, 07:19 PM)CorinthianMerchant Wrote: (11-03-2012, 02:26 PM)beecake Wrote: Changing to another map would be:
ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);
Immediatly loads another map.
asMapName - the file to load
asStartPos - the name of the StartPos on the next map
asStartSound - the sound that is played when the change starts
asEndSound - the sound that is played when the new map is loaded
You would have to play with variables to solve the other stuff
It doesn't work, I've tried SetEntityPlayerInteractCallback and SetEntityCallbackFunc.
void OnStart()
{
SetEntityPlayerInteractCallback("area", "changemap", false);
}
void changemap(string &in asEntity)
{
SetMessage ("Messages", "messageone", 3.00);
ChangeMap("NextMap", "PlayerStartArea_1", "sanity_flick.snt", "sanity_flick.snt");
}
That should work and would do the same as an examinearea, obviously adjust to whatever yours are. I don't know if that's what you did but..
Sadly enough, no luck. My hpl.log says the following:
------- SCRIPT OUTPUT BEGIN --------------------------
main (26, 9) : ERR : Expected identifier
------- SCRIPT OUTPUT END ----------------------------
FATAL ERROR: Could not load script file 'TheManMachine/maps/00_Buda.hps'!
main (26, 9) : ERR : Expected identifier
Still hasn't gotten over the loss of wubwub...