e-mods.net

Nod Engine SDK => Scripting and Modifying => Topic started by: Vlad_III on 2015-12-03, 13:46:58

Title: Changing team with ShapeShift discipline
Post by: Vlad_III on 2015-12-03, 13:46:58
Hello,

In my mod, Cappadocians have new disciplines, and one of them is "Masque de la mort" which transform the vampire in a corpseminion (new template corpseminion_cappa)

The new discipline works well but there is still one thing I must improve to finish correctly this discipline. When the Cappadocian become a corpse minion, ennemies can not recognize it like a player, and they don't attack it, never... This is not good for me, I want ennemies attack the corpseminion like if it was a player.

So, I used this new child template to try to resolve this:

(http://img15.hostingpics.net/pics/207489corpseminion.jpg)

I changed the tagID actor_team to Player 0 for the corpseminion_cappa but this not seems works:

In game, ennemies not attack even if corpseminion attacks!

What's the goods tags I must altered to create a corpseminion identified like a player?

Thanks!


Title: Re: Changing team with ShapeShift discipline
Post by: Javokis on 2015-12-03, 19:22:51
The problem is not with the template. The issue is with the script. Specifically the type effect the script is using. Check the effect's type flags to see if it is not a [team friendly] type effect. Also make sure there is no [SetActorTeam] command in the script.
Title: Re: Changing team with ShapeShift discipline
Post by: Vlad_III on 2015-12-05, 01:59:11
 Thanks, the problem has been resolved by modifying the script. Now, ennemies  can recognize  the corpseminion shape like a player  8)