Created
June 24, 2018 11:17
-
-
Save MeridiusIX/2135ddbcbf46c90b4c913c45396cece4 to your computer and use it in GitHub Desktop.
Ingame - NPC Programming Extender - AttemptDespawn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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