• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Start the engine of an npc?
#1
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);

? ?

GetVehicleParamsEx(helicoptero1,engine, lights, alarm, doors, bonnet, boot, objective);

SetVehicleParamsEx(helicoptero1, VEHICLE_PARAMS_ON, engine, lights, alarm, bonnet, boot, objective);
  Reply
#2
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);
  Reply
#3
(2021-04-06, 04:01 AM)PutuSuhartawan Wrote: is function GetVehicleParamsEx stock exist? https://www.youtube.com/watch?v=_H7p6IrpaiY
This man's English took programming too seriously.

Try
Code:
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);
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply
#4
(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

This man's English took programming too seriously.



Try

Code:
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);



Fixed! thank you
  Reply


Forum Jump: