Matty Posted September 8, 2012 Posted September 8, 2012 Necesito ayuda, No me Bindea el boton con el cmd Code: function enablecommand (hitPlayer) if (hitPlayer) then addCommandHandler("open",open) end end addEventHandler("onMarkerHit",amarker , enablecommand) bindKey(source, "z", "down", "open", open)
Arsilex Posted September 8, 2012 Posted September 8, 2012 function enablecommand (hitPlayer) if (hitPlayer) then addCommandHandler("open",open) end end addEventHandler("onMarkerHit",amarker , enablecommand) function open() bindKey(source, "z", "down", "open", open) end
BorderLine Posted September 8, 2012 Posted September 8, 2012 function enablecommand (hitPlayer) if (hitPlayer) then addCommandHandler("open",open) end end addEventHandler("onMarkerHit",amarker , enablecommand) bindKey(source, "z", "down", open)
Matty Posted September 8, 2012 Author Posted September 8, 2012 WARNING: [admin]\AP3_gate\gate.lua:11: Bad argument @ 'bindKey'
BorderLine Posted September 8, 2012 Posted September 8, 2012 function enablecommand (hitPlayer) if (hitPlayer) then addCommandHandler("open",open) end bindKey(hitPlayer, "z", "down", open) end addEventHandler("onMarkerHit",amarker , enablecommand) intenta asi pero el punto es. al tocar el marcador ke se cree el bindkey con el comando?
Matty Posted September 8, 2012 Author Posted September 8, 2012 function enablecommand (hitPlayer) if (hitPlayer) then addCommandHandler("open",open) end bindKey(hitPlayer, "z", "down", open) end addEventHandler("onMarkerHit",amarker , enablecommand) intenta asi pero el punto es. al tocar el marcador ke se cree el bindkey con el comando? Digamos que el punto seria ese, tendría que agregarle lo de unbindKey en donde esta el evento 'onMarkerLeave' para que no funcione fuera del marker no?
BorderLine Posted September 8, 2012 Posted September 8, 2012 exacto y un removeCommandHandler para kitarlo tambien el comando
Recommended Posts