Leash system, not detecting range?

Bribe

vJass errors are legion
Reaction score
67
Instead of saying "bump" why don't you make a post worth some Internet traffic; a complete sentence, perhaps?
 

NeuroToxin

New Member
Reaction score
46
Well, I said bump, because nothing new has happened, it's simply saying that I do not know what to say, yet my question is unresolved.
 

Bribe

vJass errors are legion
Reaction score
67
Then say "This is still unresolved, does someone have a solution to this?" instead. Believe me it makes you look a lot smarter.
 

tooltiperror

Super Moderator
Reaction score
231
Not if you call it in the same thingy-not-thread-but-idk-UGI-does-it-thing.

JASS:
//! zinc

unit global;

function other()
{
    local unit z=GetTriggerUnit();
    if (z==global){BJDebugMsg("Blackrose, GUI does it, NeuroToxin can.");}
}

function callback()
{
    global=GetTriggerUnit();
    
}

function onInit()
{
    // register to function callback
    other();
}

//! endzinc
 

Bribe

vJass errors are legion
Reaction score
67
local unit z will be null in the onInit method, too, because there is no Triggering Unit, the event response is... Map Initialization.
 

tooltiperror

Super Moderator
Reaction score
231
JASS:
//! zinc

unit global;

function other()
{
    local unit z=GetTriggerUnit();
    if (z==global){BJDebugMsg("Blackrose, GUI does it, NeuroToxin can.");}
}

function callback()
{
    global=GetTriggerUnit();
    
}

function onInit()
{
    trigger t=CreateTrigger();
    // Register a spell event to t
    TriggerAddAction(t,function callback);
}

//! endzinc


Yeah, did that at 7 in the morning in a few seconds, give me a break.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top