Skip to content
User Avatar
#3760
Auto-translated
Shiroyasha2910

function dolmenF ()
  MessageBox ("/Maps/Multiplayer/JoyPatriot/Tekst/dolmens.txt");
     Trigger(OBJECT_TOUCH_TRIGGER, "dolmen1", nil);
end;

SetObjectEnabled("dolmen1",false);

Trigger(OBJECT_TOUCH_TRIGGER, "dolmen1", "dolmenF");

 

I've started learning scripts and wrote a fairly simple script, but it doesn't work. I've checked it several times, the object name is correct, and the path to the text is also correct. The object is not disabled; it still works, and the specified text doesn't show what's wrong. I don't understand.

The text path shouldn't contain a / before Maps?

But in any case, always check what the console says.

Statistics

Welcome our newest member: wayal