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
How to make script "Drop lantern and pick it up" (Solved)
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#7
RE: How to make script "Drop lantern and pick it up"

(05-31-2011, 11:38 AM)Kyle Wrote:
void OnStart()
{
     AddEntityCollideCallback("Player", shake_1", "Lanterndrop", true, 1);
     SetEntityPlayerInteractCallback("lantern_2", "Lanternpickup", true);
}
void Lanterndrop(string &in asParent, string &in asChild, int alState)
{
     SetLanternActive(false, true);
     SetLanternDisabled(true);
     RemoveItem("lantern");
     SetEntityActive("lantern_2", true);
}
void Lanternpickup(string &in asEntity)
{
     SetLanternDisabled(false);
     SetLanternActive(true, true);
}

Thanks now it works and its pretty believable!


“Life is a game, play it”
05-31-2011, 11:42 AM
Find


Messages In This Thread
RE: How to make script "Drop lantern and pick it up" - by HumiliatioN - 05-31-2011, 11:42 AM



Users browsing this thread: 1 Guest(s)