CryoFall > Modding info

Two modding questions

(1/1)

Zangulus:
1) How do I tell if the player is currently in a land claim they own or are part of the faction?
2) Where is the code for picking grass and items off the ground?

Thank you.

ai_enabled:
Hello!


--- Quote ---1) How do I tell if the player is currently in a land claim they own or are part of the faction?
--- End quote ---

--- Code: ---if (LandClaimSystem.SharedIsOwnedLand(character.TilePosition,
                                      character,
                                      requireFactionPermission: false,
                                      out _))
{
    // the character owns the land under it
    return false;
}

--- End code ---


--- Quote ---2) Where is the code for picking grass and items off the ground?
--- End quote ---
For grass, twigs and similar small click-to-pickup objects—source code.

For herbs, bushes, and other similar vegetation—source code

Regards!

Navigation

[0] Message Index

Go to full version