• 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] Raze

Status
Not open for further replies.
Level 9
Joined
Aug 11, 2007
Messages
429
In my map, all of a sudden my Raze ability won't work, I'm thinking the code got messed up, is this correct:

Code:
function Trig_Raze_Conditions takes nothing returns boolean
	if(not(GetSpellAbilityId()=='A00L'))then
		return false
	endif
	return true
endfunction

function Trig_Raze_Actions takes nothing returns nothing
	call KillUnit(GetSpellAbilityUnit())
endfunction


When you click raze, the building is destroyed.
 
Status
Not open for further replies.
Top