View Single Post
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-13-2014 , 12:31   Re: Boolean at an origin
Reply With Quote #2

Nope.

And since origins are floats in this case, and let's say you have 5 decimals (you probably have more). On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory. But of course you can't use more than 2,147,483,647 indexes since that's how far a signed integer will reach. Even if integer is used for the origin values we're still talking 128 megabytes of memory. And I think that is a pretty small map size.

In other words, what do you really want to do?

You could create "zones" which consists of 2 origins which will set the outline of the area, comparing the player origin.
You could create entities at each location and do a search for them. But you can only create so many entities.
__________________

Last edited by Black Rose; 06-13-2014 at 12:40.
Black Rose is offline