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
#12
RE: Machine puzzle and other things

It's still crashing...
Spoiler below!
void OnStart()
{
AddUseItemCallback("SteamRod", "MachineScript_1", "Elevator", true);
AddUseItemCallback("FlowRod", "MachineScript_2", "Elevator_1", true);
}

void Elevator (string &in asParent, string &in asChild, int alState)
{
SetEntityActive("SteamRod_static", true);
PreloadSound("rod_in.snt");
AddLocalVarInt("ElevatorWork", 1);
func_check();
}

void Elevator_1 (string &in asParent, string &in asChild, int alState)
{
SetEntityActive("FlowRod_static", true);
PreloadSound("rod_in.snt");
AddLocalVarInt("ElevatorWork", 1);
func_check();
}

void func_check()
{
if (GetLocalVarInt("ElevatorWork") == 2)
{
PreloadSound("13_flow_done.snt");
SetEntityConnectionStateChangeCallback("elevator_lever_1", "Map");
}
}

void Map (string &in asEntity, int alState)
{
if (alState == 1)
{
ChangeMap("00_Buda.map", "PlayerStartArea_1", "14_elevator_activate.snt", "elevator_move_normal.snt");
}
}

My hpl.log...
Spoiler below!

------- SCRIPT OUTPUT BEGIN --------------------------
main (1, 1) : INFO : Compiling void OnStart()
main (3, 2) : ERR : No matching signatures to 'AddUseItemCallback(string@&, string@&, string@&, const bool)'
main (3, 2) : INFO : Candidates are:
main (3, 2) : INFO : void AddUseItemCallback(string&in, string&in, string&in, string&in, bool)
main (4, 2) : ERR : No matching signatures to 'AddUseItemCallback(string@&, string@&, string@&, const bool)'
main (4, 2) : INFO : Candidates are:
main (4, 2) : INFO : void AddUseItemCallback(string&in, string&in, string&in, string&in, bool)
------- SCRIPT OUTPUT END ----------------------------
FATAL ERROR: Could not load script file 'TheManMachine/maps/14_MechanicalLaboratory.hps'!
main (3, 2) : ERR : No matching signatures to 'AddUseItemCallback(string@&, string@&, string@&, const bool)'
main (4, 2) : ERR : No matching signatures to 'AddUseItemCallback(string@&, string@&, string@&, const bool)'


Still hasn't gotten over the loss of wubwub...
11-04-2012, 07:34 PM
Find


Messages In This Thread
RE: Machine puzzle and other things - by CorinthianMerchant - 11-04-2012, 07:34 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: 1 Guest(s)