Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Unit Type Variable Name
Unit Type Variable Name
03-06-2007, 06:09 AM
#1
Pheonix-IV
I need to use a local Unit Type variable, i'm hunting for the name that needs to be declared, EX:
local
unit
deadcreep = GetTriggerUnit()
local unittype creeptype = GetUnitTypeID() doesn't work, neither does local unittypeid or any other variation i could think of.
03-06-2007, 06:38 AM
#2
PipeDream
common.j is your first stop for native issues. GetUnitTypeId() returns an integer (e.g. 'hfoo')
03-06-2007, 08:25 AM
#3
Chocobo
Quote:
Originally Posted by
Litany
JASS:
local
integer
creeptype
=
GetUnitTypeID
()
JASS:
local
integer
creeptype
=
GetUnitTypeId
(
GetTriggerUnit
())
Instead.
03-06-2007, 10:24 PM
#4
Pheonix-IV
It's an integer? Funky. I hate JASS.
03-07-2007, 01:48 AM
#5
Pyrogasm
Ability Id's are integers too, as well as unit-types.
03-07-2007, 02:26 AM
#6
PipeDream
No, unittype is an extension of handle. But that's for stuff like is a peon, or a structure.