Jump to content

PED should fight against everybody


comy123

Recommended Posts

Hi,

 

Trying actually to write my first callout plugin.

But have problems to sway my PED to shoot on everybody like cops and civils. Not only me.

 

Actually my PED is shooting only on me. I have made some tests with the Relationshipgroups, but was net successful.

Maybe anybody can get me the right tip what is to do or where I can find in in the RAGE SDK documentation. I missing a search function there 🙂

 

        public override bool OnCalloutAccepted()
        {
            Rogue.Inventory.GiveNewWeapon("WEAPON_PISTOL", -1, true);

            RBlip = Rogue.AttachBlip();
            

            return base.OnCalloutAccepted();
        }

        public override void OnCalloutNotAccepted()
        {
            base.OnCalloutNotAccepted();
            if (Rogue.Exists()) Rogue.Delete();
          
            if (RBlip.Exists()) RBlip.Delete();
        }


        public override void Process()
        {

            base.Process();


            /*Rogue.RelationshipGroup = "Killer";
            Game.LocalPlayer.Character.RelationshipGroup = "Cop";
            Game.SetRelationshipBetweenRelationshipGroups("Killer", "Cop", Relationship.Hate);*/
            Rogue.Tasks.FightAgainst(Game.LocalPlayer.Character);


                 if (Game.LocalPlayer.Character.IsDead || Rogue.IsDead)
            {
                this.End();
            }

        }

 

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...