How to start with little amount 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 to start with little amount oil? (/thread-20506.html) |
How to start with little amount oil? - jiersk - 02-26-2013 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 RE: How to start with little amount oil? - Adny - 02-26-2013 void SetPlayerLampOil(float afOil); 100 being maximum, 0 being none. RE: How to start with little amount oil? - NaxEla - 02-26-2013 In your OnStart function, use SetPlayerLampOil. Like this: PHP Code: void OnStart() That will start the player with 10 oil (/100). RE: How to start with little amount oil? - jiersk - 02-26-2013 (02-26-2013, 01:39 AM)Adny Wrote: void SetPlayerLampOil(float afOil); Thanks for the quick response (02-26-2013, 01:41 AM)NaxEla Wrote: In your OnStart function, use SetPlayerLampOil. Thanks for the quick response |