Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved Lanter, how do i set it to almost no oil on it?
Author Message
stevenbocco Offline
Junior Member

Posts: 28
Joined: May 2012
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Datguy5 Offline
Senior Member

Posts: 622
Joined: Dec 2011
Reputation: 12
Post: #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 all posts by this user Quote this message in a reply
stevenbocco Offline
Junior Member

Posts: 28
Joined: May 2012
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Putmalk Offline
Senior Member

Posts: 275
Joined: Apr 2012
Reputation: 15
Post: #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);
}

Check me out at my youtube channel: http://www.youtube.com/user/Putmalk?feature=mhee

I post videos of my Amnesia creations.
05-22-2012 03:46 PM
Find all posts by this user Quote this message in a reply
Datguy5 Offline
Senior Member

Posts: 622
Joined: Dec 2011
Reputation: 12
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)