Caveats
CK Wiki - Notes
- Delete is valid for unique actors only. Please waive from using it on respwning/leveled actors. It will destroy spawn points as you will not delete the spawned actor, but the leveled instance marker. Please use code similar to this to prevent respawn destruction. Actor.SetCriticalStage(...) Source
-
Victim.SetCriticalStage(Victim.CritStage_DisintegrateEnd)
- Remember that Delete() only flags an object for deletion; the actual deletion takes place later. Per this USKP discussion, if a variable still points to the object, the object will remain temporarily persistent; the deletion won't occur until that variable is cleared (i.e. by setting it to None).
Examples
; Deletes the specified reference
TempReference.Delete()Auto-Generated Example
myObjectReference__toCallFunctionOn.Delete()