Basically Ive created a new Faction and I want the player added to it during the day and removed form it during the night while on a specific quest.
Event OnLocationChange(Location akOldLoc, Location akNewLoc) RegisterForUpdate(1)EndEventEvent OnUpdate() if (Game.GetPlayer().IsInInterior()) UnregisterForUpdate() else if (TVMMainQuest.Hour() >= 5) && (TVMMainQuest.Hour() < 19) Game.GetPlayer().DamageAV("Health", 20) endif endifEndEvent