• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Strange, odd and simply not understandeble

Status
Not open for further replies.
Level 2
Joined
Jul 3, 2004
Messages
7
I have this code, which is real simple:

function hej takes nothing returns nothing
call SetUnitLife( GetLastCreatedUnit, 0.00)
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction

The thing is that it wont work. It keeps telling me that it expected a function name. A little twist though, is that if i copy it to an allready made map, (in this case dimonT's 80 inventory) it works perfectly... How the **** can that be right?!
 
Level 1
Joined
Aug 28, 2004
Messages
2
Nobody said:
I have this code, which is real simple:

function hej takes nothing returns nothing
call SetUnitLife( GetLastCreatedUnit, 0.00)
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction

The thing is that it wont work. It keeps telling me that it expected a function name. A little twist though, is that if i copy it to an allready made map, (in this case dimonT's 80 inventory) it works perfectly... How the **** can that be right?!

So like...is there a function Trig_Untitled_Trigger_001_Actions floating around anywhere? I'm assuming that's what it's expecting, dunno what the heck hej is supposed to be...is that even the whole trigger?
 
Status
Not open for further replies.
Top