Jump to content


Photo

instance_deactivate_object not working


  • Please log in to reply
1 reply to this topic

#1 Madcat

Madcat

    GMC Member

  • New Member
  • 16 posts

Posted 20 May 2012 - 01:58 PM

When calling instance_deactivate_object and giving a parent object (so that I can deactivate an entire class of objects at once) it doesn't deactivate the objects.

It's fine if you give it a specific object to deactivate or use instance_deactivate_all, but the deactivation of a parent object doesn't cascade down to its children.

Known issue?
Doing something wrong?
Working as intended?
  • 0

#2 BorisE

BorisE

    GMC Member

  • New Member
  • 200 posts

Posted 20 May 2012 - 05:07 PM

When calling instance_deactivate_object and giving a parent object (so that I can deactivate an entire class of objects at once) it doesn't deactivate the objects.

It's fine if you give it a specific object to deactivate or use instance_deactivate_all, but the deactivation of a parent object doesn't cascade down to its children.

Known issue?
Doing something wrong?
Working as intended?

There seems to be some ambiguity in the way objects are handled when used in place of instances. The safest solution seems to be to use the "with" construct to iterate the list.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users