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)
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#6
RE: How to make script "Drop lantern and pick it up"

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);
}

05-31-2011, 11:38 AM
Find


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



Users browsing this thread: 1 Guest(s)