Frictional Games Forum (read-only)
How to set Oil to 0 on start - 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)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How to set Oil to 0 on start (/thread-19199.html)



How to set Oil to 0 on start - tonitoni1998 - 11-12-2012

i always start with filled lantern how do i set it to 0 or whatever?


RE: How to set Oil to 0 on start - Adny - 11-12-2012

The following function should do the trick. You can place it under void OnStart(). Remember it goes from 0-100, other values could possibly crash the game or cause complications:

void SetPlayerLampOil(float afOil);

Hope that helped


RE: How to set Oil to 0 on start - tonitoni1998 - 11-12-2012

(11-12-2012, 06:43 PM)andyrockin123 Wrote: The following function should do the trick. You can place it under void OnStart(). Remember it goes from 0-100, other values could possibly crash the game or cause complications:

void SetPlayerLampOil(float afOil);

Hope that helped
Thanks!