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 help with script involving making trees appear/disappear
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#8
RE: Need help with script involving making trees appear/disappear

Let's just try getting rid of the if function as it almost seems unnecessary to something linear...

///GATE DOOR FUNCTIONS~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

void interactgate_func(string &in asEntity)
{
    SetMessage("Messages", "locked", 3);
    AddTimer("", 4, "tree_func"); //Adjust the time here accordingly
}
void tree_func(string &in asTimer)
{
    PlaySoundAtEntity("", "15_prisoner_scream.snt", "gate_key", 0, false);
    GiveSanityDamage(10.0f, true);
    SetEntityActive("tree_door_1", false);
    SetEntityActive("tree_door_2", false);
    SetEntityActive("tree_door_3", true);
    SetEntityActive("tree_door_4", true);
}

///GATE DOOR FUNCTIONS~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09-03-2012, 07:24 PM
Find


Messages In This Thread
RE: Need help with script involving making trees appear/disappear - by Statyk - 09-03-2012, 07:24 PM



Users browsing this thread: 1 Guest(s)