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 Using Global.hps to use a script in every level
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Using Global.hps to use a script in every level

void OnGameStart()
{
    StartLocketLoop();
}

void StartLocketLoop() //There's an extra ;
That's one. I'll give you some lecturing here.

[if(GetPlayerSanity() >= 70 && !HasItem("HighSanityLocket"))]

Look at the code above. Do you see a bolded text? [!] in AngelScripting and C++ meant not. The code above is equivalent to...
[if(GetPlayerSanity() LARGER/EQUALS TO 70 AND NOT HasItem("HighSanityLocket"))]

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 05-14-2013, 12:41 PM by PutraenusAlivius.)
05-14-2013, 12:39 PM
Find


Messages In This Thread
RE: Using Global.hps to use a script in every level - by PutraenusAlivius - 05-14-2013, 12:39 PM



Users browsing this thread: 1 Guest(s)