You are blind?? I only want the script, I don't said YOU need to script it!
BTW In the tutorial is nothing about marker teleporting
And I said:
if key == "left" then -- on a left mousebutton
-- destroy his teleport point, if any
destroyElement ( getElementData ( source, "teleport" ) )
-- create a normal cylinder marker
local marker = createMarker ( x, y, z, "cylinder", 2, 0, 255, 0, 50 )
-- mark the cylinder as our "teleport" type
setElementData ( marker, "type", "teleport" )
-- link the creator (player) to the marker, and vice versa
setElementData ( source, "teleport", marker )
setElementData ( marker, "owner", source )
elseif key == "right" then -- on a right mousebutton
-- destroy his destination point, if any
destroyElement ( getElementData ( source, "destination" ) )
-- create a glowing corona
local marker = createMarker ( x, y, z+1, "corona", 1, 0, 255, 255, 50 )
-- mark the corona as our "destination" type
setElementData ( marker, "type", "destination" )
-- link the creator (player) to the marker, and vice versa
setElementData ( source, "destination", marker )
setElementData ( marker, "owner", source )
Are you crazy? I don't understand this man!