Biology
Legion Studios' biology framework, including how to use it and how to add your own biologies.
The biology framework won't do much on its own, and is primarily intended for third party modders to use in their own mods.
1. Getting a unit's biology
To check the biology of a unit, use the ls_common_fnc_getBiology function.
Here we get the biology of the current unit that the player is controlling (ls_player) and display a groan sound if the player is a zombie.
private _biology = ls_player call ls_common_fnc_getBiology;
_biology params ["_type", "_species", "_isOrganic", "_bloodModels"];
// _type will be the "group" that a species belongs to
// _species will be the exact type.
// Example: Humans have the _type of "nearhuman", but a species of "human".
if (_type == "zombie") then {
systemChat "rurrgghhh";
};2. Configuration
2.1 Creating a custom biology
You can easily create your own custom biology via config. Here is a biology already included in Legion Studios: Core as an example.
3. Examples of using biologies
Biologies can be used for lots of different systems, such as "ion" and "emp" effects not doing anything or having a lesser effect on organic beings.
Legion Studios: Core also uses the blood models when ACE Medical is loaded. Normal blood drops will be replaced with custom ones defined in the unit's biology.
4. Additional Resources
Last updated