Frictional Games Forum (read-only)

Full Version: How to set Oil to 0 on start
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i always start with filled lantern how do i set it to 0 or whatever?
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
(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!