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 Script on potions
ZodiaC Offline
Member

Posts: 120
Threads: 8
Joined: Oct 2012
Reputation: 2
#6
RE: Script on potions

(11-05-2012, 04:35 PM)beecake Wrote: No, i think it's been mentioned before. It's not possible. I guess your way was: Checking if the players health changes.
How about making a timer that checks if GetPlayerHealth is bigger than what it was 1 second ago?
That's a good theory but i thought what if the player's health is already 100???And it actually works like a sanity potion..I made a value set to 1 when the player picks the item and the checks if the player has the item so if the var is 1 and the player has used the item it changes the var to 0 and that's it...But I'm not sure how is it going to work when the player chooses to use the item in another map

[Image: 2H1Mc.jpg]
(This post was last modified: 11-05-2012, 04:51 PM by ZodiaC.)
11-05-2012, 04:50 PM
Find


Messages In This Thread
Script on potions - by ZodiaC - 11-04-2012, 09:01 PM
RE: Script on potions - by ZodiaC - 11-05-2012, 03:54 PM
RE: Script on potions - by Tiger - 11-05-2012, 04:09 PM
RE: Script on potions - by ZodiaC - 11-05-2012, 04:14 PM
RE: Script on potions - by FlawlessHappiness - 11-05-2012, 04:35 PM
RE: Script on potions - by ZodiaC - 11-05-2012, 04:50 PM
RE: Script on potions - by FlawlessHappiness - 11-05-2012, 05:50 PM



Users browsing this thread: 1 Guest(s)