Ho una domanda.

Post » Wed Jun 20, 2012 10:19 am

How do you make a spell work ONLY outside or in the exterior. "IsInExterior" does not work.
User avatar
Suzie Dalziel
 
Posts: 3443
Joined: Thu Jun 15, 2006 8:19 pm

Post » Tue Jun 19, 2012 9:32 pm

Game.GetPlayer().GetParentCell().IsInterior()
User avatar
Dona BlackHeart
 
Posts: 3405
Joined: Fri Dec 22, 2006 4:05 pm

Post » Wed Jun 20, 2012 4:33 am

Game.GetPlayer().GetParentCell().IsInterior()

Grazie
User avatar
Peter P Canning
 
Posts: 3531
Joined: Tue May 22, 2007 2:44 am

Post » Tue Jun 19, 2012 9:30 pm

Read the notes there : http://www.creationkit.com/IsInterior_-_Cell
But i don't know how the player can be in an unloaded cell...
User avatar
ruCkii
 
Posts: 3360
Joined: Mon Mar 26, 2007 9:08 pm

Post » Wed Jun 20, 2012 3:33 am

Read the notes there : http://www.creationkit.com/IsInterior_-_Cell
But i don't know how the player can be in an unloaded cell...

That's good to know I don't want to crash my game.

This makes it so the spell only works inside. Is there a value I should use in order for the reverse to be true?
User avatar
Catharine Krupinski
 
Posts: 3377
Joined: Sun Aug 12, 2007 3:39 pm

Post » Tue Jun 19, 2012 9:24 pm

It's a boolean, so if you want the reverse, use a logical NOT (!) in your test.



!(Game.GetPlayer().GetParentCell().IsInterior())
User avatar
Lalla Vu
 
Posts: 3411
Joined: Wed Jul 19, 2006 9:40 am

Post » Tue Jun 19, 2012 11:01 pm

It's a boolean, so if you want the reverse, use a logical NOT (!) in your test.



!(Game.GetPlayer().GetParentCell().IsInterior())

Stupefacente!

Grazie, signore.
User avatar
matt oneil
 
Posts: 3383
Joined: Tue Oct 09, 2007 12:54 am


Return to V - Skyrim