Help with costum script line (Call function)

  • Thread starter Thread starter Sheep_Quest
  • Start date Start date
S

Sheep_Quest

Guest
ok the problem is that i need to use the
call DestroyGroup(GetLastCreatedUnitGroup())

but when i enter it into the trigger editor, and try to save, my trigger has an error saying bad trigger line or some shit like that, and turns off

what am i doing wrong? is it the call that is typed wrong?

i really need the correct line to put into my map or it will get laggy as hell since i use a unit group pick every unit every 0.02 seconds

Thansk in advance guys, hope you can help me out
 
Sure, it is GetLastCreatedGroup()
Code:
call DestroyGroup(GetLastCreatedGroup())
 
xPheRe said:
Sure, it is GetLastCreatedGroup()
Code:
call DestroyGroup(GetLastCreatedGroup())


Thansk man, my map lagged as hell, ^^

-Edit-

maby i am asking stupid and for that i am sorry, but what is the code for destroying triggers after you are done using them?
 
Krakka said:
in GUI its in the trigger section

Turn off X trigger

Yeah i know that one, Thansk anyway! :D

What I am looking for is a costum script line that destroys the trigger so it no longer can be used during the game, i have heard of such code line and i also heard that it could help reduce lag in game, so if you by any chance know this line please tell me.. Thanks in advance..

all suggestions is appriciated
 
Try typing this in the very last line of your trigger
Code:
call DestroyTrigger(GetTriggeringTrigger())
I'm not with WE open, but as far as I can remember, this are the correct funcs.
 
Yes that is correct. For the destroy group you can also use

Code:
set bj_wantDestroyGroup = true

before a "Pick Every Unit" making the code that runs the loop destroing the group itself.

This works when you have nested pick to. If you dont have nested picks you can use wichever way you want.
 
SD_Ryoko said:
That was a 'fix' that blizzard added temporarily.

call DestroyGroup(GetLastCreatedGroup()) is the offical way now.

Yes I know that. But does that work in nested picks like this?

Code:
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
    Loop - Actions
        Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            Loop - Actions
        Custom script:   DestroyGroup(GetLastCreatedGroup())
Custom script:   DestroyGroup(GetLastCreatedGroup())
 
You can always use variables of type "unit-group".

Set myGroup = all units in <whatever>
Pick every unit in myGroup
<do something>
Destroy myGroup
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top