hey,
right, I’ve been up for a while trying to figure this out, and couldn’t come to a conclusion…
Here’s the outline.
I have the flocking script working.
Within the script is a variable called chasee, which is tied to a gameobject, that is selected in the inspector.
What I want to do, is have this variables value changed to a different object on the occurrence of something happening.
I’m testing it with key presses at the moment, then going to have it occur on collision between two objects. I have no issues with that…just need to actually get the variable changed.
Please please help if you can, I’ve been searching for ages, but couldn’t find anything that was specific to this.
Its written in JavaScript btw…
THANKS!