Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i modify the amount of the oil?
GillFrog Offline
Junior Member

Posts: 26
Threads: 7
Joined: Mar 2011
Reputation: 1
#1
Question  How can i modify the amount of the oil?

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:
void SetPlayerLampOil(float afOil)
But i don't know what. ^^'
12-05-2011, 11:51 PM
Website Find
triadtimes Offline
Senior Member

Posts: 508
Threads: 16
Joined: Jan 2011
Reputation: 21
#2
RE: How can i modify the amount of the oil?

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:
void OnStart()
{
    SetPlayerLampOil(0);
}

Hope this helps.

(This post was last modified: 12-06-2011, 12:02 AM by triadtimes.)
12-06-2011, 12:01 AM
Find
GillFrog Offline
Junior Member

Posts: 26
Threads: 7
Joined: Mar 2011
Reputation: 1
#3
RE: How can i modify the amount of the oil?

(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:
void OnStart()
{
    SetPlayerLampOil(0);
}

Hope this helps.
Thank you! Big Grin



12-06-2011, 12:25 AM
Website Find




Users browsing this thread: 1 Guest(s)