06.03.2015, 23:52
The code I gave at last will spawn them all - same time - each one in its own coords - no repetition.
If you want them to spawn one by one during a timer with random function, use something this way :
new EasterEggs[][]=
{
{Float:X, Float:Y, Float:Z, bool:SpawnedAlready},
{Float:X, Float:Y, Float:Z, bool:SpawnedAlready},
{Float:X, Float:Y, Float:Z, bool:SpawnedAlready},
//etc..
};
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
If you want them to spawn one by one during a timer with random function, use something this way :
new EasterEggs[][]=
{
{Float:X, Float:Y, Float:Z, bool:SpawnedAlready},
{Float:X, Float:Y, Float:Z, bool:SpawnedAlready},
{Float:X, Float:Y, Float:Z, bool:SpawnedAlready},
//etc..
};
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