Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Machine puzzle and other things
CorinthianMerchant Offline
Posting Freak

Posts: 2,876
Threads: 84
Joined: Nov 2011
Reputation: 131
#16
RE: Machine puzzle and other things

(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...
11-06-2012, 09:03 PM
Find


Messages In This Thread
RE: Machine puzzle and other things - by Adny - 11-04-2012, 07:59 PM
RE: Machine puzzle and other things - by Steve - 11-04-2012, 08:15 PM
RE: Machine puzzle and other things - by Steve - 11-07-2012, 05:19 PM
RE: Machine puzzle and other things - by Steve - 11-14-2012, 09:02 PM



Users browsing this thread: 2 Guest(s)