• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

trigger problem

Status
Not open for further replies.
Level 4
Joined
Jan 22, 2009
Messages
62
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