RogueMage Posted September 25, 2011 Posted September 25, 2011 I am working on a mod that changes the cell-ownership. I read out the cell-owner by: reference.GetParentCellOwner which works fine. The result can be a) a NPC OR a Faction. So here is the question: How can I find out if the owner is a faction or not? Thx in advance.
Slammer64 Posted September 25, 2011 Posted September 25, 2011 Have you seen this RogueMage? : http://cs.elderscrolls.com/constwiki/index.php/GetParentCellOwner and this? : http://cs.elderscrolls.com/constwiki/index.php/GetOwner
RogueMage Posted September 25, 2011 Author Posted September 25, 2011 Have you seen this RogueMage? : http://cs.elderscrolls.com/constwiki/index.php/GetParentCellOwner and this? : http://cs.elderscrolls.com/constwiki/index.php/GetOwner Yes, this site is my major source of wisdom concerning scripting. I am already using these commands. I am looking for a way to differntiate the result between faction and npc. The GetParentCellOwner can deliver a npc 'Rohssan' or a faction 'The Mages Guild' as well. I am looking for a way to find out if the result is a faction or npc; like a 'IsThisaFaction' function or so. I don't want to check against all factions of Vanilla for compatibility reasons.
Slammer64 Posted September 25, 2011 Posted September 25, 2011 One last stupid question RogueMage, have you checked out the OBSE documentation on this? : http://obse.silverlock.org/obse_command_doc.html Just trying to help, if I'm bugging ya, tell me to go away.
RogueMage Posted September 25, 2011 Author Posted September 25, 2011 One last stupid question RogueMage' date=' have you checked out the OBSE documentation on this? : http://obse.silverlock.org/obse_command_doc.html Just trying to help, if I'm bugging ya, tell me to go away. [/quote'] Your help is much apprectiated, thx. I got a solution now. Tried this already but used the wrong syntax . I check the reference with GetObjectType. 6 means Faction and 35 NPC.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.