Jump to content

My "Cannibal" mod not working


KEGames

Recommended Posts

Note: I have just started modding, so I don't know what kind of stuff you require to help me out.

 

So I was working on a new kind of enemy, the Cannibals, like the raiders.

I got the whole random enemy, AI, Faction, Combat Style, etc. working. However, the thing thats bugging me is that they're not cannibals.

 

This seems a little stupid but I'm trying to make it so when an NPC/PC dies, the cannibals will go over to the corpse and cannibalise them. I was trying to get this working via 2 AI Packages, one moves any Cannibals in the vicinity over to the character that just died. The other is the actual cannibalising one.

 

The conditions I used for the first one were

A check if the PlayerRef is dead (= 1)

A distance check, not too far, but not too close (otherwise the other package activates if too near) (10<Distance<20)

 

The conditions for the second one are:

The PlayerRef is dead check again

A distance check to make sure they are close enough (<10)

 

Result script (begin) is:

CannibalREF.AddPerk Cannibal

player.StartCannibal CannibalREF

 

That is all. (Note: I am only testing it with the player first, then I will add NPCs after)

I would be greatful if someone could help me out, as there's nothing more annoying as to see cannibals who aren't really cannibals.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...