local sMarker = createMarker (1618.6726074219, 1448.3284912109, 30.770175933838, 'cylinder', 7.0, 255, 0, 0, 150) -- create myMarker
function MarkerHit( hitElement, matchingDimension ) -- define MarkerHit function for the handler
local elementType = getElementType( hitElement ) -- get the hit element's type
outputChatBox( elementType.." inside sMarker", getRootElement(), 255, 255, 0 ) -- attach the element's type with the text, and output it
setElementPosition ( getLocalPlayer(), 1618.6726074219, 1448.3284912109, 30.770175933838 )
end
addEventHandler( "onMarkerHit", sMarker, MarkerHit )
meta :
type="map" version="1.0.0" />
"beachparty.map" dimension="0" />
"1618.6726074219" posY="1448.3284912109" posZ="30.770175933838" type="cylinder" />
Nil at
getLocalPlayer()