Skip to content

Posts from The script is not working.

No ratings yet — be the first to rate!
User Avatar
5 years ago
Auto-translated
Hello. While testing my map, I encountered an error with the script:

SetRegionBlocked("blok2", 2, true);

It seems to be written correctly, but the region is blocked for player 1 as well. Can you tell me what is wrong with this script?
User Avatar
5 years ago
Auto-translated
Michel_Darina
Hello. I encountered an error with a script while testing my map:

SetRegionBlocked("blok2", 2, true);

It seems to be written correctly, but the region is blocked for player 1 as well. Can you tell me what is wrong with the script.

I am attaching my map.
The parameters are specified in the wrong order. The blocking status should come first, followed by the player number:
SetRegionBlocked('blok2', true, 2)
In reply to Gerter
User Avatar
5 years ago
Auto-translated
Gerter

the parameters are listed in the wrong order. The block status should come first, followed by the player number:
SetRegionBlocked('blok2', true, 2)

Thank you very much!

Statistics

Welcome our newest member: recijeb