Jump to content

Tank Callout


TitanSloth

Recommended Posts

46 minutes ago, TitanSloth said:

Im having a problem trying to get the ped inside the tank i put him to shot at the player and officers, but ive tried everything, any suggestions?

If ped.Tasks.EnterVehicle() or ped.WarpIntoVehicle() does not work, then maybe seat index supplied to this methods is not correct ?

Have you tried both methods with seat index -2 (any available slot) ?

Link to comment
Share on other sites

11 minutes ago, TitanSloth said:

@w35 i have no problem getting him in the tank, i just wanted to know how to get him to shoot the tank cannon lol

Since english is not my native language, there can be some missunderstandings on my side, but how to undestand in other way this part ?

Im having a problem trying to get the ped inside the tank

Anyway, there are natives such like :

BOOL DOES_VEHICLE_HAVE_WEAPONS(Vehicle vehicle)
static void TASK_VEHICLE_SHOOT_AT_PED(Ped ped, Ped target, float p2) { invoke<Void>(0x10AB107B887214D8, ped, target, p2); } // 0x10AB107B887214D8 0x59677BA0
	static void TASK_VEHICLE_AIM_AT_PED(Ped ped, Ped target) { invoke<Void>(0xE41885592B08B097, ped, target); } // 0xE41885592B08B097 0x920AE6DB
	static void TASK_VEHICLE_SHOOT_AT_COORD(Vehicle vehicle, float x, float y, float z, float p4) { invoke<Void>(0x5190796ED39C9B6D, vehicle, x, y, z, p4); } // 0x5190796ED39C9B6D 0xA7AAA4D6
	static void TASK_VEHICLE_AIM_AT_COORD(Vehicle vehicle, float x, float y, float z) { invoke<Void>(0x447C1E9EF844BC0F, vehicle, x, y, z); }

which may help. I didnt used this natives, but others I did, because in RPH there are still many unimplemented functions

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...