07.03.2015, 00:21
Quote:
run a random function, if the array has SpawnedAlready==false then spawn it in that position and set it true, if it has just do a while function until you find some array with false:SpawnedAlready, I hope you understood what I meant
|
Quote:
That sytem will not prevent them from spawn in the same coordinates,this is waht i'm trying to prevent.
I prefer that they all spawn togheter,but preventing repeated coordinates,surely that the code that i post didn't work properly ? |
pawn Код:
if(SelectCoord == sizeof(cCheck[i]))
You want to randomize your easter eggs but how should they be randomized if all coordinates are used and all easter eggs look the same ?
If you only want to spawn x (x < max coords) without duplicates that should be no problem
Or do you want to spawn one easter egg without using the already spawn position till all positions are used
Just explain more precise what you want