i want a mod where players are not lootable but npc's are with zone manager i run into a problem that npc are also not lootable when player loot is turned off
Check if a corpse is from an NPC or player?
Check the playerSteamID member of the LootableCorpse.
i did check it. is it null ?
Merged post
scientist also have playerSteamID's scientist seem to have players id's lower then 10000000
Something like:
if(target.playerSteamID.IsSteamId())
{
// LootableCorpse belongs to a player
}
else
{
// LootableCorpse belongs to an NPC
} Where did you find the documentation where you find this stuff?
For the game classes such as LootableCorpse, you can find that using a .NET decompiler.evestrawWhere did you find the documentation where you find this stuff?
Setting up a project with IntelliSense also helps.