Martin786843 Posted April 10, 2020 Posted April 10, 2020 No se si estara bien (soy nuevo haciendo esto) solo quiero agregar el misil tipo busqueda de calor al shamal y queria ver si esta bien asi : (cuando termine de leer ese script que es el de ejemplo) y iba a preguntar si esto estara bien o tiene que ir con un Xml function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) -- Only create projectile if we are inside a vehicle if(vehicle)then local x, y, z = getElementPosition( Shamal) createProjectile( Shamal , 19, x, y, z) end end bindKey("vehicle_fire", "down", shootProjectile)
ScriptersMTA Posted April 10, 2020 Posted April 10, 2020 Usa matrices para poner direcciòn que llevarà el proyectil. https://wiki.multitheftauto.com/wiki/Matrix
Motar2k Posted April 12, 2020 Posted April 12, 2020 On 09/04/2020 at 17:48, Martin786843 said: No se si estara bien (soy nuevo haciendo esto) solo quiero agregar el misil tipo busqueda de calor al shamal y queria ver si esta bien asi : (cuando termine de leer ese script que es el de ejemplo) y iba a preguntar si esto estara bien o tiene que ir con un Xml function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) -- Only create projectile if we are inside a vehicle if(vehicle)then local x, y, z = getElementPosition( Shamal) createProjectile( Shamal , 19, x, y, z) end end bindKey("vehicle_fire", "down", shootProjectile) La funcion vehicle_fire no se si funciona para todos los vehiculos, pero al parecer estas creando un proyectil en la posicion del shamal, pero no estas asignando un destino, prueba jugar con los argumentos de la funcion, en lo que ami respecta se ve bien
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now