• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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