Frictional Games Forum (read-only)

Full Version: Lanter, how do i set it to almost no oil on it?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
Put this to your OnEnter() SetPlayerLampOil(10);
The number means how much oil there is.
(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!
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:

Code:
//run when lantern is picked up
void PickLantern(string &in asEntity, string &in Type)
{
    SetPlayerLampOil(25);
}
(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