• 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!

Custom script: call DestroyGroup not working on all maps? "Unknown compile error - syntax error near 'Destroy Group'"

Level 2
Joined
Aug 14, 2024
Messages
8
Hey there,

I've been making changes to some of the melee maps and I've run into an issue with this custom script not working on certain maps. I was recently shown that I should be doing this to prevent memory leaks.
1723743087046.png

Does anyone know why this script wouldn't work on certain maps? I've used this exact trigger successfully on other melee maps. Any help is appreciated.
 

Uncle

Warcraft Moderator
Level 74
Joined
Aug 10, 2018
Messages
7,967
Thank you for your reply. The option to enable JassHelper is greyed out, do you have any idea how to go about enabling it?
Is your map in Lua mode? It should definitely not be greyed out otherwise.

If it is, you need to use Lua's syntax in your Custom Script and other code:
  • Custom script: DestroyGroup(udg_Mines)
^ Just remove the word "call" from it.
 
Last edited:
Level 2
Joined
Aug 14, 2024
Messages
8
You guys are the fuckin' best. I love this community. Removing "call" worked perfectly, thank you so much.
 
Top