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
Lanter, how do i set it to almost no oil on it?
stevenbocco Offline
Junior Member

Posts: 28
Threads: 15
Joined: May 2012
Reputation: 0
#1
Lanter, how do i set it to almost no oil on it?

as the titel said, how do i set the lanter so when it will be picked up there will juste be a little drop of oil in there Smile!
i know you guys can solve this couse you guys are amazing Big Grin!
(This post was last modified: 05-22-2012, 03:46 PM by stevenbocco.)
05-22-2012, 03:38 PM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#2
RE: Lanter, how do i set it to almost no oil on it?

Put this to your OnEnter() SetPlayerLampOil(10);
The number means how much oil there is.

(This post was last modified: 05-22-2012, 03:41 PM by Datguy5.)
05-22-2012, 03:40 PM
Find
stevenbocco Offline
Junior Member

Posts: 28
Threads: 15
Joined: May 2012
Reputation: 0
#3
RE: Lanter, how do i set it to almost no oil on it?

(05-22-2012, 03:40 PM)Datguy5 Wrote: Put this to your OnEnter() SetPlayerLampOil(10);
The number means how much oil there is.
As i said, these guys are just fantastic!
thank you so much!
05-22-2012, 03:44 PM
Find
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#4
RE: Lanter, how do i set it to almost no oil on it?

I would actually do it a different way (to make it seem more realistic).

At the start of your game, SetPlayerLampOil(0);

On your Lantern entity, set a CallbackFunc to something like "PickLantern" and then write very simply:

//run when lantern is picked up
void PickLantern(string &in asEntity, string &in Type)
{
    SetPlayerLampOil(25);
}

05-22-2012, 03:46 PM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#5
RE: Lanter, how do i set it to almost no oil on it?

(05-22-2012, 03:44 PM)stevenbocco Wrote:
(05-22-2012, 03:40 PM)Datguy5 Wrote: Put this to your OnEnter() SetPlayerLampOil(10);
The number means how much oil there is.
As i said, these guys are just fantastic!
thank you so much!
Np

05-22-2012, 03:54 PM
Find




Users browsing this thread: 1 Guest(s)