Posts: 291
Threads: 67
Joined: Apr 2009
Reputation:
0
How to make that The Item Arrmor/HP/Gun can random spawn ?
Posts: 291
Threads: 67
Joined: Apr 2009
Reputation:
0
hmm ye i check but how i can script that ? so i need that the item will random spawn at cords x y z or x y z or x y z etc how to make that ?
EDIT: Atm i just make that the item spawn somewhere but i need random spawns. ...
Posts: 338
Threads: 44
Joined: Dec 2007
Reputation:
0
Why don't you just make like:
new RND;
RND=random(sizeof(Xcoords));
CreatePickup(model,type,Xcoords[RND],Ycoords[RND],Zcoords[RND]);
Or for smaller sys
new RND
RND=random(TOTALnumberOFrandomOptions)
switch(RND)
{
case 1:CreatePickup(model,type,X,Y,Z);
case 2:CreatePickup(model,type,X,Y,Z);
case 3:CreatePickup(model,type,X,Y,Z);
}
Posts: 291
Threads: 67
Joined: Apr 2009
Reputation:
0
ow i think i need this one but can u explain this : TOTALofRANDOM... idk what u say lol
edit: this one RND=random(TOTALnumberOFrandomOptions) - TOTALnumberOFrandomOptions
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
This is the number of different pickup coords you have.
Posts: 1,047
Threads: 23
Joined: Jun 2009
look into some other maps how they make random spawns.. lol
Posts: 291
Threads: 67
Joined: Apr 2009
Reputation:
0
oh sry fpr dubble post but i forget to ask i should put this udner on player pickup pickup ?