HasSpell Uses

From the Oblivion ConstructionSet Wiki
Revision as of 05:34, 19 January 2008 by imported>Egypt9 (Working on a project invovling a large scale reality replication device and an emmersive quest. Very interested to learn more about scripting.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Greetings! I need to make a script in which a container decides what to do based on whether or not the player has a certain spell. I have been using "player.HasSpell == 1" but I'm not sure this is what i should be doing. The description for HasSpell says it returns true, (i'm assuming 1) should I set it in a variable first? and if so, is it logical to use a statement like "player.HasSpell != 1"?