Skip to content
User Avatar
#678
Auto-translated
Lenlord, you're not writing a script, but rather a collection of letters. Here's an example of a script with animations on the map (the script is taken from my map):

function orksF()
if GetObjectOwner("helm") == PLAYER_1 then
MoveCamera(87, 61, 0, 50, 1, 180, 1, 0);
sleep(15)
Trigger(OBJECT_TOUCH_TRIGGER, "orks", nil);
PlayObjectAnimation("ork1", "death", ONESHOT_STILL);
sleep(5)
PlayObjectAnimation("ork2", "death", ONESHOT_STILL);
sleep(5)
PlayObjectAnimation("ork3", "death", ONESHOT_STILL);
sleep(5)
PlayObjectAnimation("ork4", "death", ONESHOT_STILL);
sleep(10)
RemoveObject "ork1"
sleep(5)
RemoveObject "ork2"
sleep(5)
RemoveObject "ork3"
sleep(5)
RemoveObject "ork4"
sleep(5)
MoveCamera(87, 40, 0, 50, 1, 180, 1, 0);
sleep(5)
PlayObjectAnimation("human1", "happy", ONESHOT_STILL);
PlayObjectAnimation("human2", "happy", ONESHOT_STILL);
PlayObjectAnimation("human3", "happy", ONESHOT_STILL);
PlayObjectAnimation("human4", "happy", ONESHOT_STILL);
PlayObjectAnimation("human5", "happy", ONESHOT_STILL);
sleep(5)
SetObjectiveState("obj_6", OBJECTIVE_COMPLETED);
sleep(5)
MessageBox(GetMapDataPath().."text9.txt");
sleep(30)
SetObjectiveState('obj_7', OBJECTIVE_ACTIVE);
SetObjectiveVisible('obj_7', true, PLAYER_1);
else
Loose(PLAYER_1)
end;
Создаётся карта "Забытый Авангард (готовность 80%)