eldelahoz Posted April 20, 2013 Share Posted April 20, 2013 Hola lo que pasas es que quiero seleccionar un objeto pero necesito calcular el scale o como puedo hacer para que mueva el objeto que ya esta creado en el mapa asi llevo el script pero no entiendo como identificar el objeto Zona1 = createColSphere ( x, y, z, 15 ) function funcion5 (hitElement) local skin = getPlayerSkin ( hitElement ) if skin == 100 then moveObject ( 800, 836.5, 811, 774.5 ) end end addEventHandler ( "onColShapeHit", Zona2, funcion5 ) function funcion6 (hitElement) local skin = getPlayerSkin ( hitElement ) if skin == 100 then moveObject ( 800, 836.5, 811, 768 ) end end addEventHandler ( "onColShapeLeave", Zona2, funcion6 ) Link to comment
Sasu Posted April 20, 2013 Share Posted April 20, 2013 Primero que nada, getPlayerSkin te saldra error xq sera removido usa getElementModel en vez de getPlayerSkin. Y para obtener objetos de un mapa podes usar getElementID. Nunca lo utilize buscalo en la wiki para mas info. Link to comment
eldelahoz Posted April 20, 2013 Author Share Posted April 20, 2013 pero no hay manera de calcular el scale en el script? Link to comment
Sasu Posted April 20, 2013 Share Posted April 20, 2013 No se a que te refieres con scale. Link to comment
AlvareZ_ Posted April 20, 2013 Share Posted April 20, 2013 Si a scale te refieres con ColShape: https://community.multitheftauto.com/index.php?p=resources&s=details&id=3804 Link to comment
eldelahoz Posted April 20, 2013 Author Share Posted April 20, 2013 Me refiero al tamaño del objeto Link to comment
FraN-724 Posted April 20, 2013 Share Posted April 20, 2013 No creo que con createObject agrandes el tamaño del objeto, te recomiendo usar getElementByID Link to comment
Castillo Posted April 21, 2013 Share Posted April 21, 2013 Para cambiar la escala de un objeto tenes que usar: setObjectScale Link to comment
Castillo Posted April 21, 2013 Share Posted April 21, 2013 De nada. Recuerda: las colisiones del objeto no se cambiaran, eso quiere decir que si lo agrandas, vas a poder ir dentro del mismo como si no tuviera colisiones. Link to comment
Recommended Posts