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 to set Oil to 0 on start
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#1
How to set Oil to 0 on start

i always start with filled lantern how do i set it to 0 or whatever?

When you are looking for someone, to do the scripting for your Custom Story, ask me!
11-12-2012, 06:38 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: How to set Oil to 0 on start

The following function should do the trick. You can place it under void OnStart(). Remember it goes from 0-100, other values could possibly crash the game or cause complications:

void SetPlayerLampOil(float afOil);

Hope that helped

I rate it 3 memes.
11-12-2012, 06:43 PM
Find
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#3
RE: How to set Oil to 0 on start

(11-12-2012, 06:43 PM)andyrockin123 Wrote: The following function should do the trick. You can place it under void OnStart(). Remember it goes from 0-100, other values could possibly crash the game or cause complications:

void SetPlayerLampOil(float afOil);

Hope that helped
Thanks!

When you are looking for someone, to do the scripting for your Custom Story, ask me!
11-12-2012, 06:52 PM
Find




Users browsing this thread: 1 Guest(s)