JASS Codes?

M

mindbomb

Guest
I need the JASS codes to END the following:

- Set Temp_UnitType (Remove a Unit Type Variable)
- Set Temp_UnitGroup (Remove a Unit Group Variable)
- Set Temp_Unit (Remove a Unit Variable)
- Set Temp_PlayerGroup (Remove a Player Group Variable)

Thanks! :D
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
609
There`s a JASS section here, go check it out. They have some tutorials to help you.
 

Jo.O

Bored...
Reaction score
70
Unit Group: call DestroyGroup (udg_Temp_UnitGroup)

Player Group: call DestroyForce (udg_Temp_PlayerGroup)

etc.
 

SFilip

Gone but not forgotten
Reaction score
634
Unit Type is actually an integer...i dont see a reason to "end" it since integers dont leak.
and removing a unit is actually the same thing as Unit - Remove it gui. the unit stored in that variable will disappear if you do so. units dont leak either.
as for player and unit groups...search the forums.
 

Chocobo

White-Flower
Reaction score
409
- Set Temp_UnitType (Remove a Unit Type Variable)
- Set Temp_UnitGroup (Remove a Unit Group Variable)
- Set Temp_Unit (Remove a Unit Variable)
- Set Temp_PlayerGroup (Remove a Player Group Variable)

-->
(Only if GUI, else remove the udg_ if you are using JASS)
Set Temp_UnitType = null
call DestroyGroup( udg_Temp_UnitGroup)
Set Temp_Unit = No unit
call DestroyForce( udg_Temp_PlayerGroup)
 
C

Capt Griffen

Guest
You cannot null unit types, as they are integers. There is also no need to.
You do not need to null any global variable.
Locations and unit groups must be destroyed, though.
 
D

Dino.pl

Guest
> Set Temp_UnitType = null
You can't nullify integers.

> Set Temp_Unit = No unit
This action isn't necessary (nullifying global handles isn't needed).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top