Please post mod releases in the Mod Showroom
Please read the Official Modification Forum Rules & Procedures BEFORE posting!
The following topics contain extremely useful data relating to the editing of missions and mission scripting:
If you are a begininer to mission coding, then please read Tutorial Links and Mission Coding Information.
Requests are to be made in the pinned topic.
Posted 13 July 2013 - 05:32 AM
073F: get_actor_in_sphere 1@ 2@ 3@ radius 1.0 with_pedtype_civilian 1 gang 1 criminal/prostitute 1 handle_as @7
and that here also
Actor.Model(7@) == #FAM1
Actor.Model(7@) == #FAM2
Actor.Model(7@) == #FAM3
and use it here too...
07AF: $PLAYER_GROUP = player $PLAYER_CHAR group
0630: put_actor $PLAYER_ACTOR in_group $PLAYER_GROUP as_leader
0631: put_actor 7@ in_group $PLAYER_GROUP
0850: AS_actor 7@ follow_actor $PLAYER_ACTOR
But they are not protecting the cj, where cj is attacked by another ped or when attacked by the police ..
They just do not shoot
Posted 03 August 2013 - 06:55 PM
I guess I would have to put some decision maker or an opcode for the actor to be recognized as a gang member pedtype .. Or else, task ids and events or some set_acquaintance, but I do not know the numbering, and what they do ..
already tried decision maker, but I do not know what is the value that places the actors to shoot at police, who shoot at cj attack, and attack other gangs ..
I think these opcodes must have some relation..
060B: set_actor 1@ decision_maker_to 65543
06AD: set_group $PLAYER_GROUP group_decision_maker_to 42@
0746: set_acquaintance 1 of_actors_pedtype 8 to_actors_pedtype 0 // see ped.dat
077A: set_actor 1@ acquaintance 4 to_actors_pedtype 0 // see ped.dat
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users