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 start with little amount oil?
jiersk Offline
Member

Posts: 118
Threads: 12
Joined: Nov 2012
Reputation: 0
#1
Question  How to start with little amount oil?

Hello there,

Could anyone please tell me how I can make the player start with a little amount of oil? Now the player starts with a full amount of it, and I would like it if it just was a little. Thanks in advance.

- Jiersk

Life is a joke made by someone with a bad sense of humor.
02-26-2013, 01:34 AM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: How to start with little amount oil?

void SetPlayerLampOil(float afOil);

100 being maximum, 0 being none.

I rate it 3 memes.
02-26-2013, 01:39 AM
Find
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#3
RE: How to start with little amount oil?

In your OnStart function, use SetPlayerLampOil.

Like this:
PHP Code: (Select All)
void OnStart()
{
    
SetPlayerLampOil(10);


That will start the player with 10 oil (/100).

In Ruins [WIP]
(This post was last modified: 02-26-2013, 01:42 AM by NaxEla.)
02-26-2013, 01:41 AM
Find
jiersk Offline
Member

Posts: 118
Threads: 12
Joined: Nov 2012
Reputation: 0
#4
RE: How to start with little amount oil?

(02-26-2013, 01:39 AM)Adny Wrote: void SetPlayerLampOil(float afOil);

100 being maximum, 0 being none.

Thanks for the quick response Big Grin

(02-26-2013, 01:41 AM)NaxEla Wrote: In your OnStart function, use SetPlayerLampOil.

Like this:
PHP Code: (Select All)
void OnStart()
{
    
SetPlayerLampOil(10);


That will start the player with 10 oil (/100).

Thanks for the quick response Big Grin

Life is a joke made by someone with a bad sense of humor.
(This post was last modified: 02-26-2013, 01:45 AM by jiersk.)
02-26-2013, 01:45 AM
Find




Users browsing this thread: 1 Guest(s)