I've been wanting to learn how to make scripts and other stuff for Blockland for a while, but I don't know how to use Torquescript with the game.
I tried asking SeventhSandwich for help in making a baby's first script where an admin could teleport other players into specific coordinates, but whatever he suggested didn't actually work.
So, tips & tricks would be appreciated I guess?
$allPlayers
serverCmdTeleport(%client,%player,%x,%y,%z) {
if(%client.isAdmin | $allPlayers) {
%targetClient = findClientByName(%player);
%targetClient.player.position = setWord(%targetClient.player.position,0,%x);
%targetClient.player.position = setWord(%targetClient.player.position,1,%y);
%targetClient.player.position = setWord(%targetClient.player.position,2,%z);
}
}
Here's the code Sev guided me to create.