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

Player Group Leak

Status
Not open for further replies.
Level 14
Joined
Aug 30, 2004
Messages
909
That didn't stop it I'm afraid...

  • fd
    • Events
    • Conditions
    • Actions
      • Set tempPlayerGroup = (Player group((Owner of tempLaser)))
      • Custom script: call DestroyForce( udg_tempPlayerGroup )
Leak Check still says:

(Line: 5) (Word: 3) Player Group Leak
Set tempPlayerGroup = (Player group((Owner of tempLaser)))
Set tempPlayerGroup = ^Leak
(Suggested Fix) No suggested fixes.

The problem appears to be with setting the player group variable as the following doesn't have an error:
  • fd
    • Events
    • Conditions
    • Actions
      • Set tempPlayerGroup = Player Group - Player 1 (Red)
      • Custom script: call DestroyForce( udg_tempPlayerGroup )
 
Last edited:
Level 14
Joined
Aug 30, 2004
Messages
909
Try this below:

  • Custom script: call DestroyForce (udg_tempPlayerGroup)
Have a space between the DestroyForca SPACE (udg_...

I'm afraid that's not it... still has an error. Here's what I tested:

  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Set tempPlayerGroup = (Player group((Owner of (Triggering unit))))
      • Custom script: call DestroyForce ( udg_tempPlayerGroup )
Like I said before, teh problem seems to be the "owner of trigginer unit" part because if I replace that with Player 1 it's fine.
 
Level 14
Joined
Aug 30, 2004
Messages
909
Well, there must also be an triggering unit. Otherwise, the variable will result in a NULL and then it's nothing to destroy.

Afraid that isn't it either... this is the strangest thing. Here's the trigger I tested:

  • test
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set tempPlayerGroup = (Player group((Owner of (Triggering unit))))
      • Custom script: call DestroyForce ( udg_tempPlayerGroup )
Here's what leak Check said:

(Line: 6) (Word: 3) Player Group Leak
Set tempPlayerGroup = (Player group((Owner of (Triggering unit))))
Set tempPlayerGroup = ^Leak
(Suggested Fix) No suggested fixes.
 
Status
Not open for further replies.
Top