The script should create first marker in that position [2, 0, 2.22]
After i hit the marker, script should create second marker in that position[12, 0, 2.22]
And that's it, nothing more but look at the screen
Istead of just creating second marker when i hit first, script start as i understand create it over and over again but WHY?
And how can i fix that problem?
createMarker(2, 0, 2.22, "cylinder", 1.0, 255, 100, 100, 100)
function toSpawnIt(player)
spawnPlayer(player, 10, 0, 5)
createMarker(12, 0, 2.22, "cylinder", 1.0, 255, 100, 100, 100)
end
addEventHandler("onMarkerHit", resourceRoot, toSpawnIt)
thank you in advance!