The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 [FIXED] "If get player health" function?
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#1
[FIXED] "If get player health" function?

I tried to write a script that would do a certain action after player's health level reaches 100, so I took a line from the original game I thought looked familiar and modified it to the idea I had in mind. However, upon starting my level, I get the following error:

[Image: M833GbE.png]

Here's the function I'm trying to get to work:

if(GetPlayerHealth(100)) FadeImageTrailTo(0,0.2f); CompleteQuest("quest_heal", "heal");

As you might know, in the original game's entry hall there's a following function:

if(HasItem("key_study_1")) SetMessage("Ch01Level02", "InteractDoorHaveKey", 0);

Any ideas?
(This post was last modified: 05-12-2016, 09:03 PM by Slanderous.)
05-12-2016, 06:54 PM
Find


Messages In This Thread
[FIXED] "If get player health" function? - by Slanderous - 05-12-2016, 06:54 PM



Users browsing this thread: 1 Guest(s)