Random Location
#1

Hai! I'm wondering about something if its possible, Is it possible to have a player spawn at a circumference of a certain co-ordinate, although at random positions inside that circumference? Examples would be great.

EDIT: PIC:

Reply
#2

Maybe a random integer would work? I'm not quite sure, it seems like you'd need an algorithm to make sure users don't spawn inside of the ground.
Reply
#3

Still don't get how to get that random integer inside that circumference. There must be a function around.
Reply
#4

There are some functions in pawno that should be able to do this. They are in the float.inc. There is one that might help: floatround (Read wiki) I am not familiar with it, I just remembered it since you posted this. Hope it helped.
Reply
#5

Yes, though i don't really know how to get a random co-ordinate inside that float.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)