The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

Talk:What happens when an Actor is destroyed

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 04:36, 18 March 2010 by 00zX (Talk | contribs) (Created page with 'Okay so I was curious after reading this article as to what detach() does, it sounded like it is called for actors that an actor owns but this doesnt seem to be the case after so…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Okay so I was curious after reading this article as to what detach() does, it sounded like it is called for actors that an actor owns but this doesnt seem to be the case after some testing. The text is alittle hard to follow but I dont think this is a problem with the writing so much in that every subclass of actor is refereed to as an actor so it gets confusing. For the sake of examples I might suggest using 2 different actor names so you can tell which is which where priority matters, like in the case of an actor and an actor which has that actor as an owner (probably didnt follow that right?) so ActorOne, ActorTwo has an owner=ActorOne. I'll look into base changed to see how that gets called during destroy also.

My test, I had 1 actor (subclass of Info called UT_MDI_Pawn) which gets attached to a UTPawn and checks for a certain inventory item, now when the UTPawn is destroyed no Detach is called for UT_MDI_Pawn. Maybe I am mistaken by readin this on whats supposed to happen. I'll test Basechange and see if I cant help clarify this alittle to make sure no one is mistaken cool --00zX 10:36, 18 March 2010 (UTC)