Frictional Games Forum (read-only)
How can i modify the amount of the oil? - 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 can i modify the amount of the oil? (/thread-11706.html)



How can i modify the amount of the oil? - GillFrog - 12-05-2011

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. ^^'



RE: How can i modify the amount of the oil? - triadtimes - 12-06-2011

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.


RE: How can i modify the amount of the oil? - GillFrog - 12-06-2011

(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