I want to make enemies shoot out triggers that they use to see with. But I dont want them to be shoot out in a straight line. I want them to see wider, I want them to shoot out random directions in that direction they are allready facing. I tried this i mmf: "enemy" shoot in selected directions (and make a special code thingy that "1+1" thing) rethrive data from object - get direction value + random (5) (looks like this: Dir( "Group.Bad" ) + random (5)). and I press ok then the "1+1" code thingy is erased leaving me with the code: shoot in selected directions. what should I do?
If there are multiple enemies, my favoutie method for this sort of thing is to give each enemy an identifier value in a variable, which can be a random number, or to be absolutely foolproof, it's starting X * 1000 + starting y. Then, when you create the eyes, set it an alterable value with the same ID number as the enemy who created it. Then you can test eyes value A = enemy value A in each event to set the object focus correctly.
Yes, That was an idea I was going to do, becouse when only one enemy sees something mysterious I want him to go and check it out, not the entire platoon. I was not quite sure how to, but setting the x and y position at the start of level is pretty smart. And saven, thanks it works