Location = NULL?

feelingparty

New Member
Reaction score
3
I"m debugging my mode right now and i need to know what happens if a location handle is set to NULL. Would it be set to the Center of The Playable Map Area? Help would be appreciated. :)
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
null is nothing.
local variables set to null will be deleted.

if you use GUI script and try to use a nulled location it will return the center of the playable map area, though i think with Jass this would give you a type error.
 

Romek

Super Moderator
Reaction score
964
[ljass]null[/ljass] is a valid argument for a location, so you'd get no compile errors from using it.
You would also get point (0, 0) from a null location. Though this is usually the center of the map, note that it's possible to have a map in which (0, 0) is not at the center.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top