- Joined
- Mar 19, 2010
- Messages
- 870
Hey hivers,
what im doing?
Well, i created a destructable which looks like a gravestone. The players can just attack it by right click and im listen to the death event of it.
When the gravestone is destroyed i want to remove it but the call of RemoveDestructalbe() crashes the game.
It's strange that the destructable after killing is still there. it cant be attack but its visual there and that sucks... I could hide it, i think that should work but can i remove it correctly to avoid leaks... is hiding and d=null enough??
Reg.
what im doing?
Well, i created a destructable which looks like a gravestone. The players can just attack it by right click and im listen to the death event of it.
When the gravestone is destroyed i want to remove it but the call of RemoveDestructalbe() crashes the game.
It's strange that the destructable after killing is still there. it cant be attack but its visual there and that sucks... I could hide it, i think that should work but can i remove it correctly to avoid leaks... is hiding and d=null enough??
Reg.