huanrenfeng Posted October 31, 2019 Posted October 31, 2019 how to know where an npc live in skyrim by script ? I'm working on a mod and I just need to get the location where an arbitrary NPC lives. Is there any solution? I don't want to check every faction in skyrim, it's exhausting.
Gorosmom Posted November 5, 2019 Posted November 5, 2019 try using console commands theres a advance console command mod that gives you detailed information..
huanrenfeng Posted November 5, 2019 Author Posted November 5, 2019 1 hour ago, Gorosmom said: try using console commands theres a advance console command mod that gives you detailed information.. Thanks, can you provide more details?
Harvald Posted November 5, 2019 Posted November 5, 2019 I think you can use this mod. https://www.nexusmods.com/skyrim/mods/76051. It is possible to add a marker to any NPC or just teleport to the location he is in.
huanrenfeng Posted November 5, 2019 Author Posted November 5, 2019 44 minutes ago, Harvald said: I think you can use this mod. https://www.nexusmods.com/skyrim/mods/76051. It is possible to add a marker to any NPC or just teleport to the location he is in. Thank you! I think this mod works ! Thank you!
huanrenfeng Posted November 5, 2019 Author Posted November 5, 2019 57 minutes ago, Harvald said: I think you can use this mod. https://www.nexusmods.com/skyrim/mods/76051. It is possible to add a marker to any NPC or just teleport to the location he is in. Wait a minute, that might not fit my need. What I want is to get an NPC's home, but this mod just marks where the Actor is, that might not be its home. (For example, an NPC is in prision, but his home is in Riverwood. Normally we can know his home by checking the AI package in the CK to see where he sleep. I just want a function in the script to check the sleep package's parameter "location" in the runtime . Or we can know his home by checking his faction to see some kind of "keyFaction" or "homeFaction", but as I said this can not detect home unknown to the mod author, such as checking an NPC introduced by a new mod not known by the current making mod. )
Gorosmom Posted November 6, 2019 Posted November 6, 2019 17 hours ago, huanrenfeng said: Wait a minute, that might not fit my need. What I want is to get an NPC's home, but this mod just marks where the Actor is, that might not be its home. (For example, an NPC is in prision, but his home is in Riverwood. Normally we can know his home by checking the AI package in the CK to see where he sleep. I just want a function in the script to check the sleep package's parameter "location" in the runtime . Or we can know his home by checking his faction to see some kind of "keyFaction" or "homeFaction", but as I said this can not detect home unknown to the mod author, such as checking an NPC introduced by a new mod not known by the current making mod. ) try searching on nexus about Console or commands.. it might show up on a mod list im not too specific about it but there is a file you can download that extends the game's console reading system
Swe-DivX Posted November 6, 2019 Posted November 6, 2019 This mod? My Home is Your Home (MHiYH 2plus) https://www.nexusmods.com/skyrim/mods/62040/
huanrenfeng Posted November 6, 2019 Author Posted November 6, 2019 6 hours ago, Swe-DivX said: This mod? My Home is Your Home (MHiYH 2plus) https://www.nexusmods.com/skyrim/mods/62040/ I don't think so
huanrenfeng Posted November 17, 2019 Author Posted November 17, 2019 Found the solution I think: GetEditorLocation - ObjectReference I think Editor location is the home of the NPC.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.