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?
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


Messages In This Thread
RE: How can i modify the amount of the oil? - by triadtimes - 12-06-2011, 12:01 AM



Users browsing this thread: 1 Guest(s)