addCommandHandler ( "explosion",
function ( thePlayer )
local x, y, z = getElementPosition ( thePlayer ) -- Obtengo la posicion del jugador
local rx, ry, rz = getElementRotation ( thePlayer ) -- Obtengo la rotacion del jugador
local mat = Matrix.create ( x, y, z, rx, ry, rz ) -- Creo la matrix usando la posicion y la rotacion
local forward = Matrix.getForward ( mat ) -- Obtengo la posicion en frente del jugador
local pos = ( Matrix.getPosition ( mat ) + forward ) -- Sumo ambos vectores
createExplosion ( pos, 11 )
end
)