ID:270241
 
I need to know how to make it so a player can clone himself and the clone be a monster that can attack but can't attack the person that created them. Anyone know how to do this? Any help on the supject would be appriciated.
First, you need monster A.I., which I'm sure you already have. Make a new path that is solely for clones (/mob/Monster/Clone) and make sure it has the same monster A.I. as the rest, we'll modify it soon. Add a variable called owner and place a few if checks within the A.I. to see if it's target has the same key as its owner variable. Then, when the new mob is created, make sure owner is the same as the user's key.