SFX and local leaks

dannyboydude

Ultra Cool Member
Reaction score
33
Ive seen this before how do i do

create and destroy a SFX in 1 action

and

do i still have to do call RemoveLocation ( udg_P )

to remove a local point P ?
 

Romek

Super Moderator
Reaction score
963

dannyboydude

Ultra Cool Member
Reaction score
33
well i know its the jass section but this has jass in so

whats wrong with my code

Bold part gives me errors when i start game

Code:
Actions
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Visibility - Disable fog of war
        Visibility - Disable black mask
        Camera - Pan camera for Player 1 (Red) to (Center of (Playable map area)) over 0.00 seconds
        Wait 5.00 seconds
        Unit - Create 1 Mortar Team for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
        Set Worker = (Last created unit)
        Set WorkerLoc = (Position of Worker)
        [B]Custom script:   call DestroyEffect(AddSpecialEffectLoc(Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl,udg_WorkerLoc))[/B]
        Custom script:   call RemoveLocation ( udg_WorkerLoc )
 

dannyboydude

Ultra Cool Member
Reaction score
33
well as i start the game with it all activated it just goes to the main menu

but when i disable that custom script action it works and runs the game

But obviously no SFX
 

Romek

Super Moderator
Reaction score
963
The Effect String should be in speech marks.

JASS:
        Custom script:   call DestroyEffect(AddSpecialEffectLoc("Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl",udg_WorkerLoc))
 

dannyboydude

Ultra Cool Member
Reaction score
33
It was that simple ? lol cant believe that.

And hw do i remove local points

call RemoveLocation (P) ?
 

Romek

Super Moderator
Reaction score
963
Yeah. P should be the name of your location.

Just to note.
It's only Points in GUI.
In Jass, they're known as location's.

JASS:
local location l
call RemoveLocation(l)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top