Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Forcing Player to use an object
Author Message
Thiefnuker Offline
Junior Member

Posts: 44
Joined: Jan 2012
Reputation: 4
Post: #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 all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,085
Joined: Mar 2009
Reputation: 67
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
rallelol Offline
Member

Posts: 53
Joined: Dec 2011
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)