(08-15-2015, 02:14 AM)GameEnthusiast Wrote: (08-15-2015, 12:29 AM)Mugbill Wrote: SetLightVisible ? Is that what you're after? Or perhaps FadeLightTo ?
nope. i mean there was a feature in mfp where if you HAD the LANTERN, in another map, if there was a lantern in the ENVIRONMENT, it would still be set unactive. so you wouldnt pick up another lantern.
Oh, that would be using a conditional. You can do it one of two ways, by checking if the player has the lantern, or by using a global variable. For the sake of simplicity, you should just check if the player has the lantern.
You would put it in OnEnter();, since you would want to check this each time you enter the map.
if(HasItem("lantern") == true)
{
// SetEntityActive("lantern_1", false);
}