I need to detect the collision size of units and destructibles

Komaqtion

You can change this now in User CP.
Reaction score
469
Ok...

The function you use is called: [ljass]GetUnitCollisionSize[/ljass]
And that is simply used like this:
JASS:
call GetUnitCollisionSize( whichUnit )

Where "whichUnit" is the unit you want to get the collision size of...

If you want to use this for GUI purposes, I'd suggest you do something like this:
Trigger:
  • Custom script: set udg_TempReal = GetUnitCollisionSize( GetTriggerUnit() )


That would set the collision size of (Triggering unit) to a variable (Of type "real") called "TempReal" ;)

Hope you understand this a little at least :D
 

Idontknowyou

New Member
Reaction score
33
Yes, thank you very much.


One more question. If I switch the words "unit" with "destructible", will the trigger still work properly? if not, I'll need a bit more help.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Oh, I only saw "units" in the first post XD
(Didn't see "destructibles" :p)

Well, I might be able to alter it to work for destructables too :S

Wait a minute...
 

Idontknowyou

New Member
Reaction score
33
Thanks for all the help!

I'm making a game based on metal gear and needed to measure the size of destructibles in order for you to hide behind them properly....... it figures Blizzard would make such a simple thing so difficult.


Edit: are you still working on the trigger? or did you give up on it?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top