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
Forcing Player to use an object
Thiefnuker Offline
Junior Member

Posts: 44
Threads: 7
Joined: Jan 2012
Reputation: 4
#1
Forcing Player to use an object

Hello guys,
Just a quick question: Can you force the player to use a health potion with a script?
Thanks for all answer,
Thiefnuker
01-12-2012, 05:05 PM
Find Reply
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: Forcing Player to use an object

You can set player's health with a script and remove the health item with a script again. You can use screen effects too.

01-12-2012, 05:08 PM
Website Find Reply
rallelol Offline
Member

Posts: 53
Threads: 11
Joined: Dec 2011
Reputation: 1
#3
RE: Forcing Player to use an object

If you want the same effect you can go

SetPlayerHealth("amount of health");

and

GiveSanityBoostSmall();

and you will have the same effect as a healthpotion.


01-12-2012, 05:18 PM
Find Reply




Users browsing this thread: 1 Guest(s)