Skip to content

Instantly share code, notes, and snippets.

@MeridiusIX
Created June 24, 2018 11:17
Show Gist options
  • Save MeridiusIX/2135ddbcbf46c90b4c913c45396cece4 to your computer and use it in GitHub Desktop.
Save MeridiusIX/2135ddbcbf46c90b4c913c45396cece4 to your computer and use it in GitHub Desktop.
Ingame - NPC Programming Extender - AttemptDespawn
//NPC Programming Extender - AttemptDespawn
/*
Description:
- This method will attempt to despawn the grid and any
attached sub-grids. It will only work if the grid is
mostly owned by an NPC faction.
Dependancies:
- NPC Programming Extender mod.
Arguments:
- None
*/
bool AttemptDespawn(){
try{
return Me.GetValue<bool>("NpcExtender-DespawnDrone");
}catch(Exception exc){
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment