Jump to content

Quick question on Reset() function


Recommended Posts

Hi folks,

 

Just wanted to clarify, If I use Reset() to reset an object, if that object is "initially disabled" by default (flagged in editor), will it return to that state when Reset even if it has been enabled by another function in the script. I'm assuming yes, but the wiki didn't 100% clarify it to me. I'm also hoping the answer is yes, so I don't have to add additional Disable() calls (which I currently am anyway but wanted to do some housekeeping).

 

Quote from Wiki:

"If the actor is dead, disabled, and has no enable parent, Reset will enable it. Otherwise, it does not change the enable state of the actor. So if the actor was marked 'Initially Disabled', it won't be disabled by the Reset call"

 

Thanks

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...