Skip to content

Scripts for beginners.

User Avatar
#73
Auto-translated
Oh... I have a problem: The player appears, the camera focuses, but the quest and text are not displayed. Here is the script:
function new_day()
	local day = GetDate(DAY)
	if day == 2 then
		DeployReserveHero("Marder", 25, 23, 0)
		SetObjectiveState("Ubit", OBJECTIVE_ACTIVE, 1)
        MoveCamera(25, 23, 0, 50, 0.7, 0, 0, 0, 1)
		MessageBoxForPlayers(GetPlayerFilter(2), "Maps/SingleMissions/Mojo Tworenie/orlando.txt")
	end
end

Trigger(NEW_DAY_TRIGGER, 'new_day');
[url=Таверна (фулдилка) - заходите.