i made it but only the createObject is working:/
function Mine(thePlayer, matchingDimension)
createColSphere ( -1467, -1467, 99.15, 1 )
local pX, pY, pZ = getElementPosition ( source ) -- get the player's position
createExplosion ( pX, pY, pZ, 6, source ) -- and create an explosion there
outputChatBox("You stepped on a Mine!",thePlayer,255,109 ,109 ) -- outputs a chatbox
end
addEventHandler("onColShapeHit",root,Mine)
function Object ( name )
createObject ( 1211, -1467.2827, -1287.6701, 99.15, 0, 0, 0 ) -- this creates an object
end
addEventHandler ( "onResourceStart", resourceRoot, Object )