Jump to content

Make a creature attackable, but that doesn't do anything.


Recommended Posts

Posted

Hi everyone,

As the title says, I'm trying to make a creature attackable, but that doesn't do anything.

I'd want this creature to stay where she is, to never target anyone, to never move, just as if nothing happen. But, this creature should be attackable by players.

I've tried all I could :

DISABLE_MOVE in unit_flags (no effect)

PASSIVE in unit_flags (moves when I attack)

NullAI in AIName (no effect, maybe because I have something in ScriptName ?)

ROOTED in dynamiflags

etc, etc, etc...

It seems like if you put something in ScriptName, the creature always moves. Is there a way to stop it?

Thanks :)

Posted

Maybe write a sd2 script with ScriptedAI add

void AttackStart (Unit* who)
{
    // do nothing, because we doesnt want that the creature do anything
}

That's what I would try...

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use