|089E: get_actor_in_sphere 3@ 4@ 5@ radius 5.0 handle_as 11@ // versionB |
08E5: get_actor_in_sphere 27@ 28@ 29@ radius 50.0 handle_as 0@
073F: get_actor_in_sphere 4@ 7@ 10@ radius 20.0 with_pedtype_civilian 1 gang 1 criminal/prostitute 1 handle_as 27@
But they are not satisfying yet! 'Cause you know they couldn't get gang type, drug dealer, and any other actors (especially custom actors in missions!)
But, I found out that this one :
|0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@|
Could get any actors! Absolutely can! This one's good! But, it only get the nearest actor, otherwise you can't! T_T
And also if these opcodes used in a place without any single human, it will gone crash!
So my questions are :
1. Do you know how to make get_actor work better (can be use to get any actors, in the coordinates that we type)
2. Please tell me how to solve the crash problem like I wrote above!
Please show me the example script, I would be glad for that. Thanks very much!