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
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: Machine puzzle and other things

For 3:

void OnStart();
{
AddEntityCollideCallback("Entity_1", "Script_1", "Blah", true, 1);
AddEntityCollideCallback("Entity_2", "Script_2", "Blah_1", true, 1);
}

void Blah (string &in asParent, string &in asChild, int alState)
{
AddLocalVarInt("Gangnam", 1);
func_check();
}

void Blah_1 (string &in asParent, string &in asChild, int alState)
{
AddLocalVarInt("Gangnam", 1);
func_check();
}

void func_check();
{
if (GetLocalVarInt("Gangnam") == 2)
{
SetEntityConnectionStateChangeCallback("Levar_elevator", "Map");
}
}

void Map (string &in asEntity, int alState)
{
if (alState == 1)
{
ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);
}
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-03-2012, 07:06 PM
Find


Messages In This Thread
RE: Machine puzzle and other things - by The chaser - 11-03-2012, 07:06 PM
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: 3 Guest(s)