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
Can anyone help me? :)
Projektamensia Offline
Junior Member

Posts: 16
Threads: 3
Joined: Oct 2012
Reputation: 0
#7
RE: Can anyone help me? :)

(12-24-2012, 10:08 PM)Statyk Wrote: Your best bet is to use local variables to set objects in places for this puzzle. Then when they enter this script area, it checks the local variable amount. If it does not match a specific amount, have the player go back to the spawn and set the local variable back to it's original amount. This will place all objects back in their original place.

So if i set my moving wall to variable, AddLocalVarInt(""Wall", 1);
and my door, AddLocalVarInt(""Wall", 1);.

Then in my,
void OnLeave();
{
if(GetLocalVarInt("Wall") == 2)
{
//Nothing happens...
}
else
{
ChangeMap("10_Crushwall.map", "start", "", "");
}
}

Is this what you mean?
12-24-2012, 10:15 PM
Find


Messages In This Thread
Can anyone help me? :) - by Projektamensia - 12-24-2012, 09:48 PM
RE: Can anyone help me? :) - by Statyk - 12-24-2012, 09:52 PM
RE: Can anyone help me? :) - by Projektamensia - 12-24-2012, 09:58 PM
RE: Can anyone help me? :) - by Statyk - 12-24-2012, 10:02 PM
RE: Can anyone help me? :) - by Projektamensia - 12-24-2012, 10:04 PM
RE: Can anyone help me? :) - by Statyk - 12-24-2012, 10:08 PM
RE: Can anyone help me? :) - by Projektamensia - 12-24-2012, 10:15 PM
RE: Can anyone help me? :) - by Projektamensia - 12-25-2012, 12:51 PM



Users browsing this thread: 1 Guest(s)