Excluding specific corpses (dead units) from garbage collector.

  1. last week

    Hello, I'm making a mission where my group is looking for a missing patrol, now, I want this patrol to be found dead, but right now the garbage collector cleans away these dead bodies before we can reach them. (I'm giving the units zero health at startup). It's important that they start off as dead since there are scripts depending on blufor being present/not present in their area. I tried adding "this setvariable ["ALiVE_SYS_GC_IGNORE",true]" in their init line but they still seem to despawn, probably because they are dead units and not objects? Anyone know of any workaround here? :)

  2. 6 days ago

    SavageCDN

    Oct 10 Moderator

    The wiki states for that exlcusion:

    "add classnames of any additional non-unit and non-vehicle objects to exclude from GC"

    so I'm assuming it just won't work on dead AI. You could work around this by having something nearby that keeps them there.. say an invisible UAV (which ALiVE treats as a player)... although this might mess with your scripts that depend on unit presence.

 

or Sign Up to reply!