Jump to content

Photo

Spells that only work outside

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Mysterious Mr. Bear

Mysterious Mr. Bear

    Disciple

  • Allies
  • 261 posts


Users Awards
ok, so after playing Midas Magic I just presumed there was some simple getinexterior function to stop spell use from within a cell. And there IS that function... but it needs a specific worldspace. This means to use it on the many outside-only effects Im adding I'd need to add checks for Tamriel, Shivering Isles, and the worldspace added by my mod... AND need compatability patches for popular mods. Shurly theres shum shimple way of going about this? :P Something that look if your IN a cell maybe... I tried "getinexterior Interiors != 1" but it didn't recognise Interiors as a worldspace....

If anyone knows this it would be great, scouted the CS but found nothing.... if not, I guess I'll manage :)

Mysterious Mr. Bear :D :D

Edited by Mysterious Mr. Bear, 10 June 2011 - 05:21 PM.

  • 0

#2
WillieSea

WillieSea

    Senior Scholar

  • Skyrim Scholars
  • 4,787 posts


Users Awards
You could check for not interior.

IsInInterior

This would be the player is in 'any' exterior space.
if player.IsInterior == 0

  • 0

#3
Mysterious Mr. Bear

Mysterious Mr. Bear

    Disciple

  • Allies
  • 261 posts


Users Awards
I KNEW I'd missed something stupid like that!!! I checked through all the getis... and getin... functions and figured that was all there was.

Thanks willie :) Probably saved me from a wealth of access coding, headaches and compatability patches... over something as small as that :P
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users