ogsf4life Posted July 25, 2017 Share Posted July 25, 2017 (edited) How get all pedtype without need write one to one ? example :X if 051A: actor $PLAYER_ACTOR damaged_by_actor [email protected] jf @X 077A: set_actor [email protected] acquaintance 4 to_actors_pedtype HERE // see ped.dat ? Edited July 25, 2017 by ogsf4life Link to comment Share on other sites More sharing options...
deltaCJ Posted July 25, 2017 Share Posted July 25, 2017 What? Press F12 and go to Documentation, and go to GTA SA And then go to Ped Types. F12 > Documentation > GTA SA > Ped Types pete9516 1 Link to comment Share on other sites More sharing options...
ogsf4life Posted July 25, 2017 Author Share Posted July 25, 2017 you dont undestand me.. but if i want make my actor hate all? dont there a number than get all type of ped? Link to comment Share on other sites More sharing options...
kosticn101 Posted July 25, 2017 Share Posted July 25, 2017 (edited) Each pedtype has it's number, right? [email protected] = 0 //number of first pedtype:pedtypeswait 0077A: set_actor [email protected] acquaintance 4 to_actors_pedtype [email protected]@ += 1if [email protected] > 31 //number of last pedtypejf @pedtypesCheck the manual to see number of first and last pedtype. You forgot to add wait 0 in your code. Edited July 26, 2017 by kosticn101 deltaCJ and Sanmodder 2 Link to comment Share on other sites More sharing options...
deltaCJ Posted July 26, 2017 Share Posted July 26, 2017 (edited) Oh you want the actor to hate everyone? I don't think you can do that, (Try Kosticn's code ^^) but if you want you can make him target random peds in his radius. Edited July 26, 2017 by deltaCJ kosticn101 1 Link to comment Share on other sites More sharing options...
kosticn101 Posted July 26, 2017 Share Posted July 26, 2017 (edited) A little test: {$CLEO}0000: 060A: create_decision_maker_type 0 store_to [email protected] // decision\allowed\m_.ped files0709: set_decision_maker [email protected] on_event 36 {when the actor sees a ped he hates} task 1000 {kill ped on foot} respect 0.0 hate 100.0 like 0.0 dislike 0.0 in_car 1 on_foot 1 :waitwait 0if and 0AB0: key_pressed 49 //1 0AD2: [email protected] = player $PLAYER_CHAR targeted_actor //IF and SETjf @wait :loadwait 00247: load_model #AK47 038B: load_requested_modelsif 0248: not model #AK47 availablejf @load [email protected] = 0 //number of first pedtype:pedtypeswait 0077A: set_actor [email protected] acquaintance 4 to_actors_pedtype [email protected]@ += 1if [email protected] > 31 //number of last pedtypejf @pedtypes 060B: set_actor [email protected] decision_maker_to [email protected]: give_actor [email protected] weapon 30 ammo 30000 // Load the weapon model before using this01B9: set_actor [email protected] armed_weapon_to 300249: release_model #AK47 jump @wait065C: release_decision_maker [email protected]: end_custom_threadTarget a ped and press "1".http://gtaforums.com/topic/450827-coding-decision-makers/ make him target random peds in his radiusYeah, that could also work. Edited July 26, 2017 by kosticn101 deltaCJ 1 Link to comment Share on other sites More sharing options...
ogsf4life Posted July 27, 2017 Author Share Posted July 27, 2017 kosticn101 thanks bro... ______________________________________ deltaCJ Hate all than attack the CJ deltaCJ 1 Link to comment Share on other sites More sharing options...
deltaCJ Posted July 28, 2017 Share Posted July 28, 2017 Yeah, you can use Kosticn's code for when you aim at the actor, but if you are just trying to make it random, you can grab a random ped in CJ's radius, and make him go on a rampage, and start shooting CJ. Sanmodder and kosticn101 2 Link to comment Share on other sites More sharing options...