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
Lantern - amount of oil?
thestormcrow Offline
Junior Member

Posts: 12
Threads: 8
Joined: Apr 2013
Reputation: 0
#1
Lantern - amount of oil?

undefined
04-10-2013, 06:05 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Lantern - amount of oil?

Assuming that this is a question...
Well, the amount that you have in your lantern is defined in the Debug Menu as Oil, which value is between 0 (empty) and 100 (full). The various oil drums and containers which can be found restore depending on their sizes.
You can set, add or get the amount of oil in a lantern with these codes:
void SetPlayerLampOil(float afOil);
void AddPlayerLampOil(float afOil);
float GetPlayerLampOil();
Change "float afOil" with an integer between 0 and 100 and can have decimals.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 04-11-2013, 03:05 PM by Romulator.)
04-11-2013, 03:04 PM
Find




Users browsing this thread: 1 Guest(s)