Hi. In my mod i have a skill that the player can use to click on an NPC and then get information about how that character has moved, the code looks like this:
IF
CharacterUsedSkillOnTarget(CHARACTER_Player1,CHARACTER_Manduk, "Target_Tracking", "Target")
THEN
ItemTeleportToTrigger(ITEM_Manduk_Trace_To_Bury_1,TRIGGER_Manduk_To_Bury_1);
ItemTeleportToTrigger(ITEM_Manduk_Trace_To_Bury_2,TRIGGER_Manduk_To_Bury_2);
etc etc for each
In game:
So the white glowing things are traces of the movement from the NPC and they move to the trigges when the player uses the skill on an NPC, this works fine. I also have a skill that's supposed to remove the white trace things but it's not working:
IF
CharacterUsedSkill(CHARACTER_Player1, "Remove_Tracks", "Earth")
THEN
ItemTeleportToTrigger(ITEM_Manduk_Trace_To_Bury_1,TRIGGER_Trace_Collector);
ItemTeleportToTrigger(ITEM_Manduk_Trace_To_Bury_2,TRIGGER_Trace_Collector);
etc etc...
Now this code works in so far that if i use the function ItemMoveToTrigger instead of ItemTeleportToTrigger the white things move nicely in the direction of the Trace Collector trigger. I can't redo this however, so it only works once and after that they're stuck. ItemTeleportToTrigger doesn't work at all.