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?
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


Messages In This Thread
RE: Lanter, how do i set it to almost no oil on it? - by Putmalk - 05-22-2012, 03:46 PM



Users browsing this thread: 1 Guest(s)