[Pawn] Start the engine of an npc? - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] Start the engine of an npc? (/showthread.php?tid=1840) |
Start the engine of an npc? - Boxi - 2021-04-05 Hello everyone! well I have the following problem, and is that I already installed helicopter as npc and appears in the game normally, but the engine is not on, I did the following to try to turn it on but it does not work any idea? thanks c: Code: helicoptero1 = AddStaticVehicle(487,-2102.1294,-2237.8005,30.6250,142.4440,0,137); RE: Start the engine of an npc? - PutuSuhartawan - 2021-04-06 is function GetVehicleParamsEx stock exist? https://www.youtube.com/watch?v=_H7p6IrpaiY changed to: helicoptero1 = AddStaticVehicle(487,-2102.1294,-2237.8005,30.6250,142.4440,0,137); GetVehicleParamsEx(helicoptero1,engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(helicoptero1, VEHICLE_PARAMS_ON, lights, alarm, bonnet, boot, objective); RE: Start the engine of an npc? - Pinch - 2021-04-07 (2021-04-06, 04:01 AM)PutuSuhartawan Wrote: is function GetVehicleParamsEx stock exist? https://www.youtube.com/watch?v=_H7p6IrpaiYThis man's English took programming too seriously. Try Code: helicoptero1 = AddStaticVehicle(487,-2102.1294,-2237.8005,30.6250,142.4440,0,137); RE: Start the engine of an npc? - Boxi - 2021-04-07 (2021-04-07, 02:24 AM)Pinch Wrote:(2021-04-06, 04:01 AM)PutuSuhartawan Wrote: is function GetVehicleParamsEx stock exist? https://www.youtube.com/watch?v=_H7p6IrpaiY Fixed! thank you |