Jump to content

DestroySelf() has a special behaviour with global creatures such as party members

Guest Alphonse Brown

Recommended Posts

Guest Alphonse Brown


I just noticed that the entry on DestroySelf() is lacking a detail, which is described here. Global creatures can still be accessed from script to e.g. bring them back with MoveGlobalObject(). (Usage example here)

Knowing this may come in handy since DestroySelf() is now used in BGEE by non-Imoen party members scripts, triggered if Die() while not in party and in a random area. (For example, from being petrified by a random encounter Basilisk)


Link to comment

Thanks, updated. It's true for older engines as well; it just doesn't all happen in the action itself, so perhaps that's why it was undocumented.

Link to comment
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...