The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: Machine puzzle and other things
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);
}
}
Sorry, now it should be fine.
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
11-04-2012, 06:14 PM |
|