Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Help with a script - how to spawn a non-hostile actor?


andrewmyles
 Share

Recommended Posts

I am trying to create a script that spawns a given actor at a given place. Everyting works well, but the spawned actors are always hostile towards me. I don't want that.

 

In the ultra-simplified version of the script, I tried using .stopCombat() command, but it doesn;t work.

Scriptname NewCellSpawnScript3 extends ObjectReference

ActorBase Property NPC Auto

ObjectReference Property SpawnMarker01 Auto

Event OnActivate(ObjectReference akActionRef)
    SpawnMarker01.PlaceActorAtMe(NPC,1).StopCombat()
EndEvent

I've browsed lots of different commands on CK wiki, none of them seem to work. How to make the actor non-hostile towards the player?

Link to comment
Share on other sites

What faction is he in? If he's in the bandit or something similar, that might explain why he's hostile

Well, I haven't checked the factions yet, but is this the only way to make the creature non-hostile? I mean, if there is a command to make them automatically hostile, shouldn't be one to calm them...?

 

When I spawn some of these creatures, like draugrs in-game, via console command, they often are non-hostile (not always)

 

Also, on a completely unrelated note, it seems (some) of my posts need to go through some silly moderation. Wouldn't it be faster if they were not?

Edited by andrewmyles
Link to comment
Share on other sites

Well since you've only posted twice... I'm not sure you have a sufficient data pool to discuss unnecessary post moderation.  As for occasional non-hostile draugr... this is what is known as an error.  These creatures should always be hostile and it is when they are NOT that it is a mistake.  Solution!  Make a unique creature for NPC1.  You want a draugr?  Make a draugr that is not a member of player hostile factions.  Such as when you reanimate a draugr with conjuration magic - not hostile unless you slap it around a bit.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...