esporta Posted June 26, 2013 Share Posted June 26, 2013 (edited) function armyspawn ( commandName ) createVehicle ( 468, 192, 1920, 17, 0, 0, 180 ) -- Sanchez createVehicle ( 468, 195, 1920, 17, 0, 0, 180 ) -- Sanchez createVehicle ( 468, 198, 1920, 17, 0, 0, 180 ) -- Sanchez createVehicle ( 601, 201, 1920, 17, 0, 0, 180 ) -- Patrioten Reihe createVehicle ( 601, 204, 1920, 17, 0, 0, 180 ) -- Patrioten Reihe createVehicle ( 601, 207, 1920, 17, 0, 0, 180 ) -- Patrioten Reihe createVehicle ( 601, 210, 1920, 17, 0, 0, 180 ) -- Patrioten Reihe createVehicle ( 470, 213, 1920, 17, 0, 0, 180 ) -- Patrioten Reihe createVehicle ( 470, 216, 1920, 17, 0, 0, 180 ) -- Patrioten Reihe createVehicle ( 470, 219, 1920, 17, 0, 0, 180 ) -- Patrioten Reihe createVehicle ( 470, 222, 1920, 17, 0, 0, 180 ) -- Patrioten Reihe createVehicle ( 433, 185, 1927, 18, 0, 0, 180 ) -- Barracs createVehicle ( 470, 150, 1914, 19) -- Kleine Patrioten Reihe createVehicle ( 470, 147, 1914, 19) -- Kleine Patrioten Reihe createVehicle ( 470, 144, 1914, 19) -- Kleine Patrioten Reihe createVehicle ( 470, 141, 1914, 19) -- Kleine Patrioten Reihe createVehicle ( 470, 138, 1914, 19) -- Kleine Patrioten Reihe createVehicle ( 468, 235, 1908, 17, 0, 0, 90 ) -- Sanchez createVehicle ( 468, 235, 1914, 17, 0, 0, 90 ) -- Sanchez createVehicle ( 468, 235, 1901, 17, 0, 0, 90 ) -- Sanchez createVehicle ( 468, 235, 1893, 17, 0, 0, 90 ) -- Sanchez createVehicle ( 497, 341, 1897, 18, 0, 0, 90 ) -- Police Maverick createVehicle ( 497, 341, 1907, 18, 0, 0, 90 ) -- Police Maverick createVehicle ( 497, 341, 1914, 18, 0, 0, 90 ) -- Police Maverick createVehicle ( 548, 341, 1930, 20, 0, 0, 90 ) -- Cargobob createVehicle ( 548, 341, 1940, 20, 0, 0, 90 ) -- Cargobob createVehicle ( 548, 341, 1950, 20, 0, 0, 90 ) -- Cargobob createVehicle ( 476, 278, 1955, 19, 0, 0, 90 ) -- Rustler createVehicle ( 476, 278, 1988, 19, 0, 0, 90 ) -- Rustler createVehicle ( 476, 341, 2024, 19, 0, 0, 90 ) -- Rustler outputChatBox ( "Government Vehicles spawned!", 255, 0, 0) end addCommandHandler ( "arespawn", armyspawn ) There is a problem. I cant move helicopters at y direction. I am changing y directions from script but nothing happening ingame. Dont say me you had to restart your game. I restarted minimum 10times but nothing happened again. And there is porblem at this script too. function respawnExplodedVehicle() setTimer(respawnVehicle, 5000, 1, source) end addEventHandler("onVehicleExplode", getRootElement(), respawnExplodedVehicle) This script must respawn exploded vehicles but ingame it is not respawning exploded vehicles. Edited June 26, 2013 by Guest Link to comment
xTravax Posted June 26, 2013 Share Posted June 26, 2013 On first script you need x,y,z coordinates Link to comment
xXMADEXx Posted June 26, 2013 Share Posted June 26, 2013 Next time, please use the [lua] tag, not the Link to comment
esporta Posted June 26, 2013 Author Share Posted June 26, 2013 On first script you need x,y,z coordinates These are X,Y,Z coordinates 341, 1907, 18 Link to comment
50p Posted June 26, 2013 Share Posted June 26, 2013 The code you showed us is not problematic. To me it looks just fine and has no impact on helicopter's Y movement direction. There must be something else, maybe your keys have been unbound. Link to comment
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