Frictional Games Forum (read-only)

Full Version: lantern oil (SOLVED)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
what script do i use to set the players oil when the player loads into the map?
As this is already solved, I'll just leave the answer here as reference for anyone in the future:

PHP Code:
void SetPlayerLampOil(float afOil);
void AddPlayerLampOil(float afOil);
float GetPlayerLampOil(); 
(float afOil);
Can be for example:
SetPlayerLampOil(75); this is the ammount - >75% of the oil in the inventory.
just a small hint there for you IF you didnt understand\knew.