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
Script Help Display message when player tries to use lantern
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#6
RE: Display message when player tries to use lantern

Another option:

PHP Code: (Select All)
void OnStart {
SetLanternLitCallback("DenyLantern");
}

void DenyLanternbool bState )
{
SetLanternActive(falsefalse);
SetMessage("Messages""NoLantern"5);


To let the player use the lantern again, use this:
PHP Code: (Select All)
SetLanternLitCallback(""); 

(This post was last modified: 05-27-2016, 05:14 PM by Daemian.)
05-27-2016, 05:12 PM
Find


Messages In This Thread
RE: Display message when player tries to use lantern - by Daemian - 05-27-2016, 05:12 PM



Users browsing this thread: 1 Guest(s)