Frictional Games Forum (read-only)
Forcing Player to use an object - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+--- Thread: Forcing Player to use an object (/thread-12561.html)



Forcing Player to use an object - Thiefnuker - 01-12-2012

Hello guys,
Just a quick question: Can you force the player to use a health potion with a script?
Thanks for all answer,
Thiefnuker



RE: Forcing Player to use an object - Tanshaydar - 01-12-2012

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


RE: Forcing Player to use an object - rallelol - 01-12-2012

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.