Quantcast

Jump to content

» «
Photo

take handle opcodes

2 replies to this topic
Jack...
  • Jack...

    Firearms and adrenaline!!!

  • Members
  • Joined: 06 Dec 2011
  • None

#1

Posted 30 July 2013 - 07:26 AM

Any1 knows what the flags in this opcode means:
CODE
058F: unknown_create_distribution_actor $7839 at $7835 $7836 or_at $7837 $7838 flag 1 0 1
?
I know exactly how to use it but will it take every ped handle? I couldn't find any information about these flags except for the opcode 0469 which works
similar as this one but only with law and combat peds. I'm tired of using 05EF:
CODE
05EF: 0@ = random_actor_near_point 0.0 0.0 0.0 in_radius 5000.0 find_next 0 pass_deads 1 //IF and SET

Is it clever to use these "take handle" opcodes in a multiple scrypts at once? How would something like that effect the game? Will it crash eventually or maybe cause it to run slow? Or maybe only the last scrypt which captures the handle will work?



ThirteenAG
  • ThirteenAG

    Li'l G Loc

  • Members
  • Joined: 29 Dec 2008

#2

Posted 30 July 2013 - 03:32 PM

CODE
while true
   wait 0
0054: store_player $player_char position_to 10@ 11@ 12@
if
   05EF: 13@ = random_actor_near_point 10@ 11@ 12@ in_radius 550.0 find_next 0 pass_deads 0 //IF and SET
then
   repeat  
           if
               //something
           then
               //do something
           end
   until 85EF: not 13@ = random_actor_near_point 10@ 11@ 12@ in_radius 550.0 find_next 1 pass_deads 0 //IF and SET
end

end

Use it properly and you'll be fine.

Jack...
  • Jack...

    Firearms and adrenaline!!!

  • Members
  • Joined: 06 Dec 2011
  • None

#3

Posted 02 August 2013 - 11:39 AM

Yes I'm using them properly but sometimes they overlap eachother when I use them on the same vehicle for exmpl. And what about 058F? I still didn't find any info about those last 3 params confused.gif.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users