Quantcast

Jump to content

» «
Photo

Get actors group handle

4 replies to this topic
HeresOtis
  • HeresOtis

    The SCM Undergrad

  • Feroci
  • Joined: 29 Apr 2011
  • United-States

#1

Posted 05 August 2014 - 11:03 PM

Any function to get the handle of a group that the actor is in? When gang members spawn next to each other and walk by each other by the game engine, are they in a group?


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#2

Posted 06 August 2014 - 03:25 PM Edited by ZAZ, 06 August 2014 - 03:34 PM.

if player recruited homies allows to do following

07AF: 25@ = player $PLAYER_CHAR group
092B: 0@ = group 25@ member 0  
092B: 1@ = group 25@ member 1
092B: 2@ = group 25@ member 2
092B: 3@ = group 25@ member 3
092B: 4@ = group 25@ member 4
092B: 5@ = group 25@ member 5
092B: 6@ = group 25@ member 6
// ^param order of sascm-v1.ini

for 29@ to 6
    wait 0
    if
        056D:   actor 0@(29@,7i) defined// checks if gangmember exist
    then
        do something
    end
end 

to check for a unknown group of any actor, i think there isn't a code(i don't know any)
there're only codes to set or get details of existing groups and this one:

06EE:   is_group_member 263@ group 260@

existing groups means, created by main or cleo script
group related opcodes:
07AF
062F
0630
0631
0632
06F0
07B3
07F6
092B
06C9
07FD
08F5
08F6
08F4


HeresOtis
  • HeresOtis

    The SCM Undergrad

  • Feroci
  • Joined: 29 Apr 2011
  • United-States

#3

Posted 06 August 2014 - 06:42 PM

Thanks for the info, but I needed an unknown group handle.


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#4

Posted 06 August 2014 - 08:49 PM Edited by ZAZ, 06 August 2014 - 08:51 PM.

you mean which gang, they aren't a group


HeresOtis
  • HeresOtis

    The SCM Undergrad

  • Feroci
  • Joined: 29 Apr 2011
  • United-States

#5

Posted 06 August 2014 - 10:08 PM

you mean which gang, they aren't a group

I think it's a group. You know when the game spawns a group of ballas (or grove) and they walk around close to each other and if you shoot one of them then they all attack you. I want to get the handle of that group of ballas/group.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users