Jump to content

getZoneType()


WolfPire

Recommended Posts

Posted

Well.. I've seen that there are quite alot of World Function.

I've also seen that the "getZoneName()" retrieves cities and country's names.

So if we can do that... Why not get the type of zone? It would come handy for some scripts.

Maybe we should add a function like this?

Syntax:

getZoneType( float x, float y, float z ) 
  
--Returns: Either "City" or "Country" 

I know it's really a small function, but it might come handy sometime.

~ WolfPire ~

''Overcome your own limits ~''

日本語もできますよ!

Posted

This can be done via scripting.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

I know it could be done via scripting.

Quite hardly tho'

Maybe it could be set as an "Useful Function" (user-made, i'm not really sure)?

~ WolfPire ~

''Overcome your own limits ~''

日本語もできますよ!

Posted

That's very easy. Just make tables with name of all parts of SA and set them as country or city. Then use getZoneName and check.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...