Welcome to the Builder Academy

Question Help with trigger

More
20 Sep 2018 11:22 #8209 by JTP
Help with trigger was created by JTP
Ok i made this unique objekt, and it must be hare to keep.

So im thinking, is it possible to make a mob Hunt trigger. So when a player has this objekt, Then the mob Will Hunt Them Down and attack Them, and the mob takes the objekt If it kills the player who had it ?

How Would that be done...

Please Log in or Create an account to join the conversation.

More
22 Sep 2018 11:37 #8215 by thomas
Replied by thomas on topic Help with trigger
Well, to avoid this object being forever locked away in some storage, it would need to be no-rent. This is quite vital.

Next, add a trigger to the object. It should fire if it's picked up.
the object trigger should check if the hunting mob is already loaded, or load it otherwise. Then it should force the hunter to "mhunt" the one who picked it up. It may be useful to remote an identifier to the mob as well, for use in its own scripts.
Similarily, if dropped, it should either purge the hunting mob or at least make it stop hunting (I think it's mforget you use for this)

Next, it's just a question of adding a trigger to the mob so it picks up the object from any corpses it happens across.

Please Log in or Create an account to join the conversation.

Time to create page: 0.157 seconds