Jump to content

[Skyrim SE] No horses zone


Recommended Posts

Hello everyone.
I'm building a new worldspace, and I would like to make some areas in which horses cannot enter...
Does anyone know a simple way to do this, I don't know, through a scripted Trigger, or through Navmesh . . . or other ways?
Thanks in advance to those who will answer

Link to comment
Share on other sites

There isn't a way in the game prevent a horse from appearing, but I suppose you could have scripted triggers of various flavors, with a GetRace() check to resolve the horse's presense if it shows up

"If horse then hide 3D" and such routines. Gets more complicated if you mean people riding on horses. You would have to override the riders' AI and use a package that has "Ride Horse" set to false. Up to you how to handle this but it is more involved to solve than one might think

If you really wanted to prevent mounting at all, it needs to be a Cell or (I think) Small World, where that option is checked on a worldspace. Comes down to what you are trying to accomplish and how flexible you are

  • Thanks 1
Link to comment
Share on other sites

it not your problem.. it the problem of the mod that enhances horses, you could do a to a patch for "convenient horses" and other such mods, they have a no go zone for world spaces, it will stop users of those mods making horses appear in your worldspace

but if if just a portion of your worldspace,  i got no idea.. but look into those mods, they are the ones that give users spells that make appear horses anywhere.. see what exclusion zones they have and add your worldspace/cell to their formlists it may not solve all your problems but it is a start

  • Thanks 1
Link to comment
Share on other sites

Well, i'm doing some test with a scripted trigger

What i have is a little portion of my worldspace where i placed a group of houses surrounded by a fortification, and i don't want that any horses can enter inside that space.
I have placed a stable with an XMarkerheading just outside the town's fortification, and a trigger over the fortificate town with this script:

Scriptname QLC_Cavallo_in_Stalla_01 extends ObjectReference  

Keyword Property ActorTypeHorse Auto
ObjectReference Property XMarkerStalla Auto
String Property MessaggioStalla Auto

Event OnTriggerEnter(ObjectReference akActionRef)
	If akActionRef.HasKeyword(ActorTypeHorse)
		bool playerOnMount = Game.GetPlayer().IsOnMount()
		If playerOnMount == 1
			Utility.Wait(0.1)
			Game.GetPlayer().Dismount()
			Utility.Wait(1)
		EndIf
		debug.notification(MessaggioStalla)
		Actor Cavallo = akActionRef as Actor
		Cavallo.MoveTo(XMarkerStalla)
	EndIf
EndEvent

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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