Jump to content

GetParentCellOwner


Recommended Posts

Posted

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

B) a Faction.

 

So here is the question: How can I find out if the owner is a faction or not?

 

Thx in advance.

Posted

 

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.

Posted

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 :dodgy:. I check the reference with GetObjectType. 6 means Faction and 35 NPC.

 

 

 

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...