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
Need script help asap! extremely difficult script!
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#7
RE: Need script help asap! extremely difficult script!

Well, it would be this:

///Let's get serious! There will be three buttons

void OnStart() //This can depend, if player can only be one time in the map and it cannot exit without doing the puzzle this is the function. For others, Enter.
{
///Interactions with areas
///I will do the things for the right buttons here
SetPlayerInteractCallback("Area_3", "Call", false);
SetPlayerInteractCallback("Area_2", "Call", false);
SetPlayerInteractCallback("Area", "Call", false);This will make the area always interactable
}

void Call (string &in asEntity)
{
AddLocalVarInt("Buttonsyay", 1); //Assuming this button is the correct one
Checkdabuttons();
}

void Checkdabuttons()
{
if (GetLocalVarInt("Buttonsyay", 3);
{
//Do the stuff you want done when good buttons are pressed
}
}

Of course, this is just the good combination. The bad combination would be a lot of "if"'s and "else"'s.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 12-19-2012, 06:04 PM by The chaser.)
12-19-2012, 06:03 PM
Find


Messages In This Thread
RE: Need script help asap! extremely difficult script! - by The chaser - 12-19-2012, 06:03 PM



Users browsing this thread: 1 Guest(s)