Frictional Games Forum (read-only)

Full Version: How to start with little amount oil?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there,

Could anyone please tell me how I can make the player start with a little amount of oil? Now the player starts with a full amount of it, and I would like it if it just was a little. Thanks in advance.

- Jiersk
void SetPlayerLampOil(float afOil);

100 being maximum, 0 being none.
In your OnStart function, use SetPlayerLampOil.

Like this:
PHP Code:
void OnStart()
{
    
SetPlayerLampOil(10);


That will start the player with 10 oil (/100).
(02-26-2013, 01:39 AM)Adny Wrote: [ -> ]void SetPlayerLampOil(float afOil);

100 being maximum, 0 being none.

Thanks for the quick response Big Grin

(02-26-2013, 01:41 AM)NaxEla Wrote: [ -> ]In your OnStart function, use SetPlayerLampOil.

Like this:
PHP Code:
void OnStart()
{
    
SetPlayerLampOil(10);


That will start the player with 10 oil (/100).

Thanks for the quick response Big Grin