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 oil (SOLVED)
G510s Offline
Banned

Posts: 58
Threads: 32
Joined: Jun 2014
#1
lantern oil (SOLVED)

what script do i use to set the players oil when the player loads into the map?
(This post was last modified: 12-18-2014, 10:46 AM by G510s.)
12-18-2014, 10:43 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: lantern oil (SOLVED)

As this is already solved, I'll just leave the answer here as reference for anyone in the future:

PHP Code: (Select All)
void SetPlayerLampOil(float afOil);
void AddPlayerLampOil(float afOil);
float GetPlayerLampOil(); 

12-18-2014, 04:59 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#3
RE: lantern oil (SOLVED)

(float afOil);
Can be for example:
SetPlayerLampOil(75); this is the ammount - >75% of the oil in the inventory.
just a small hint there for you IF you didnt understand\knew.
(This post was last modified: 12-19-2014, 12:37 AM by DnALANGE.)
12-19-2014, 12:35 AM
Find




Users browsing this thread: 1 Guest(s)