The PatrolMarker from your OnInit() won't be usable when your OnLoad() event fires, and if you use PatrolMarker = Game.GetPlayer().PlaceAtme(PatrolIdleMarker, 1) again it'll make a new Marker. If you wanna move it around after, declare Objectreference PatrolMarker as a script global property like your arrays, then in any event (usually the first one, as redux's replace the current ref, but whenevr works best for ya) all you need to do is put PatrolMarker = Game.GetPlayer().PlaceAtme(PatrolIdleMarker, 1) If you declare it the way I wrote it the first time, it'll be a single-event-only property. I am so glad there will be a new release of Skyrim this fall (Skyrim Remastered) and hopefully some old modders will attend the forums again. It also seems no forums are active anymore when it comes to Skyrim. I have even tried to make them patrol to PatrolIdleMarkers already defined in vanilla Skyrim (Stable outside Solitude, Barracks in Falkreath etc), but the Actors will just not start patrolling/walking. I need the codelines for adding creating a PatrolIdleMarker, LinkedReference or something else that I can set X,Y,Z to related to the Player, so that the spawned Actors will patrol passed the point where the player was when they spawned. If they are friendly the guard will simply stand/talk but not patrol or walk. Won't work - the imperial guard will stand in one spot, only moving if combat starts close by or if the player comes into proximity and the guard is hostile to the player. Removing one row to stop spawned actor to start attacking the player from a distance: ![]() If((Bandits.IsDead() & Distance > ClearDeadDistance ) || Distance > ClearAllDistance )īut lets say I wanted the Bandit to just patrol passed the player, replacing the bandit with say an Imperial guard? The script below works just fine for this:ĭebug.Notification("Bandit #" + i + " has wrong BanditStatus.")ĭistance = PlayerRef.GetDistance(Bandits) Then I want the bandit to start moving towards the player, attacking the player. I want a bandit to appear at a random location but specific distance from the Player. I want to, using papyrus ONLY, make Actors that I spawn to travel/patrol to a PatrolIdleMarker, preferably one that I create in the Papyrus script and set the coordinates for.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |