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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SCRIPT]Change to specific random map
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: [SCRIPT]Change to specific random map

Ok. So:

AddEntityCollideCallback("Player", "Script_change_da'_map", "CHANGE", true, 1);

void CHANGE (///sintaxis)
{
ChangeMap ///Sorry, I'm in a friends house and I don't remain how it was. But, you will add a RandInt(1, 3);
}

So, make several callbacks:

If went to map three:

{
AddGlobalVarInt("I_WENT_TO_MAP_THREE", 1);
Change();
}

void Change()
{
if (GetGlobalVarInt("I_WENT_TO_MAP_THREE") == 1)
{
ChangeMap////+RandInt (1, 2)
}
}

And you should do something like this for the other maps. Sorry for not putting all the script, but I'm in a friend's house (Gooby) and I don't have time.

Hope you the best of luck!

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-19-2012, 05:47 PM
Find


Messages In This Thread
RE: [SCRIPT]Change to specific random map - by The chaser - 11-19-2012, 05:47 PM



Users browsing this thread: 1 Guest(s)