Frictional Games Forum (read-only)

Full Version: How can i modify the amount of the oil?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
At the start of my story, the oil is full.
I want to start with 0 oil.

I know that i have to do something with this:
Code:
void SetPlayerLampOil(float afOil)
But i don't know what. ^^'
Well, all you have to do is put that line of code in during your OnStart() and put 0 where "float afOil" is. Because "float afOil" is the amount of starting oil the player should have, in your case 0. So it will look like this:
Code:
void OnStart()
{
    SetPlayerLampOil(0);
}

Hope this helps.
(12-06-2011, 12:01 AM)triadtimes Wrote: [ -> ]Well, all you have to do is put that line of code in during your OnStart() and put 0 where "float afOil" is. Because "float afOil" is the amount of starting oil the player should have, in your case 0. So it will look like this:
Code:
void OnStart()
{
    SetPlayerLampOil(0);
}

Hope this helps.
Thank you! Big Grin