Jump to content

How to spawn random monsters at a distance from the player


tonycubed2

Recommended Posts

My mod generates random encounters while a player sleeps or fast travels. But it would be nice for some encounters to start in the next room or a bit in the distance. Any way to script it like that?

 

It cannot be based on placing markers before hand, as the player can sleep anywhere using a bedroll or tent...

 

my standard line is:

 

PlaceActorAtMe(WolfBaseProperty).StartCombat(Game.GetPlayer())

Link to comment
Share on other sites

  • 1 month later...

SpawnInCell = Game.GetPlayer().GetParentCell()

SpawnInCell.PlaceActorAtMe (Ambushers1, 1)

 

Tried the above, but the second line will not compile...

Link to comment
Share on other sites

  • Recently Browsing   0 members

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