Jump to content

opcode to get actor to kill closest ped


ShadowCoderKing

Recommended Posts

ShadowCoderKing

hello is there a opcode to get a actor to kill the closest random pedestrian ?

 

gta sa cleo

Link to comment
Share on other sites

You may use two opcodes to do this,

first to get the handle of closest ped and

then second to order the player to kill that actor/ped,

both opcodes could be easily found in opcode search of sanny builder

Link to comment
Share on other sites

 

073F: get_actor_in_sphere 4@ 7@ 10@ radius 20.0 with_pedtype_civilian 1 gang 1 criminal/prostitute 1 handle_as 27@

 

 

or

 

 

0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@

Link to comment
Share on other sites

  • 10 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.