• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Custom script form

Status
Not open for further replies.
Level 6
Joined
Mar 1, 2013
Messages
52
Hey guys,

A quick question about custom scripts: When you add a script, does it matter if there's a space in between the brackets ?

For example call RemoveLocation ( udg_Temp_Point )
or call RemoveLocation(udg_Temp_Point)

Will the script work both ways, or just one of this?

I know that in some languages like Python, spaces matters in every written code.

Thanks.

EDIT: Sorry for duping thread, i posted it in the wrong section first.
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,578
The spacing for the parenthesis doesn't matter.

A simple test proves this. Set TempPoint to some corner of the map, then try removing it with the "spacing" Custom script, and finally try to create a unit there. If the location was properly removed then the unit will spawn at the center of the map (default location) instead of at TempPoint. If it wasn't removed, then the unit will spawn at TempPoint.

Plus you'd probably get an error message if it was wrong in the first place.
 
Last edited:
Status
Not open for further replies.
Top