Supposed i shoot a missile whit a "follow function" set to a entity pointer "target". Now my missle fly to the entity named "target" but it not reached the entity yet.
Now i select another entity... so the pointer "target" it set to this new entity and my missle change is way for reach this new target.
My problem its i want to my missle keep chasing the first entity. And if i shoot another one to a differente target i dont want the first one starting to chase the new target...
And the problem its about how too lock the missile on the entity i targeted at the moment i have shooted it.. if i select another entity and the missile are already in fly , it should not set it destination too the new one...
You need a local pointer in the function that is controlling the missiles. Once you shoot your missiles assign the value of the global pointer to the local pointer.
Always learn from history, to be sure you make the same mistakes again...