_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
New here? I'm Roha — want a quick tour?
Hello everyone, can you tell me how to make a script so that in PlayObjectAnimation, a creature plays an animation, then waits, and repeats the animation after 3 seconds?
Added 4 hours 14 minutes ago
Please help me find the error in my code:function message()
MessageBox("Maps/SingleMissions/greet/sms1.txt")
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg0", "nil");
The problem is that the trigger works, meaning when my hero enters, he stops, but the message doesn't appear.
1. To get exactly 3 seconds, you need to calculate what number to put in sleep(). The formula: 1 segment = 1/20 seconds. Experiment, start by putting 5 in the parentheses. Maybe 5 segments will be enough).
2. Replace Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg0", "nil"); with Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg0", "message");
Checking the console during the game is very helpful for identifying errors.
And I still haven't received the message from Azgalor.