• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

trigger problem

Status
Not open for further replies.
Level 5
Joined
Jan 22, 2009
Messages
66
ok so i'm tryin to make an ability that will create a unit anywhere targeted, including water.
so i picked cluster rockets
and everything works fine but the unit spawns at the center of the map instead of targeted area..... plz help

btw dis is da trigger on jass script...(i made it in gui)

function Trig_Nuke_Copy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A012' ) ) then
return false
endif
return true
endfunction

function Trig_Nuke_Copy_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'e00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetSpellTargetLoc(), bj_UNIT_FACING )
endfunction

//===========================================================================
function InitTrig_Nuke_Copy takes nothing returns nothing
set gg_trg_Nuke_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Nuke_Copy, EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Nuke_Copy, Condition( function Trig_Nuke_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Nuke_Copy, function Trig_Nuke_Copy_Actions )
endfunction
 
Level 3
Joined
Oct 9, 2008
Messages
61
You dont know how to do what? Copy as text or trigger tag?
Copy as text can you do by clicking the trigger name where you see it in the trigger, and for trigger tag you just mark your text and click the cog icon over your message text.
 
Status
Not open for further replies.
Top