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
#3
RE: How to make script "Drop lantern and pick it up"

(05-31-2011, 11:04 AM)Kyle Wrote: To remove it requires a combination of things to happen.

SetLanternActive(false, true);
SetLanternDisabled(true);
RemoveItem("lantern");

I don't know what you mean to pick it up, but you just simply set the second one active.

SetEntityActive("lantern_2", true);

I mean just that when player pick ups lantern back.. Okay this is the script basically?

Script: AddEntityCollideCallback("Player", "shake_1", "Lanterndrop", true, 1);

SetLanternActive(false, true);
SetLanternDisabled(true);
RemoveItem("lantern");

SetEntityActive("lantern_2", true);

Right?

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


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



Users browsing this thread: 1 Guest(s)