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
!
i know you guys can solve this couse you guys are amazing
!
Put this to your OnEnter() SetPlayerLampOil(10);
The number means how much oil there is.
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);
}