Add an actor by the Script

Post » Tue Jun 19, 2012 9:07 pm

Hi everyone,

I have question :

Is it possible to add Actors dynamically in a scene ?

I want to add an actor by a trigger.

I have searched to do it by the Script but I haven't found how to do so. Maybe it's possible without Script ?

Thanks for you're help, have a good day !
User avatar
Michelle Chau
 
Posts: 3308
Joined: Sat Aug 26, 2006 4:24 am

Post » Wed Jun 20, 2012 3:03 am

You can use http://www.creationkit.com/PlaceAtMe_-_ObjectReference or http://www.creationkit.com/MoveTo_-_ObjectReference to place/move an actor by script
User avatar
Robert Devlin
 
Posts: 3521
Joined: Mon Jul 23, 2007 2:19 pm

Post » Tue Jun 19, 2012 7:53 pm

Try with this command:http://www.creationkit.com/PlaceAtMe_-_ObjectReference or this other one:http://www.creationkit.com/PlaceActorAtMe_-_ObjectReference
User avatar
NAtIVe GOddess
 
Posts: 3348
Joined: Tue Aug 15, 2006 6:46 am

Post » Wed Jun 20, 2012 7:12 am

Hmm i've tried but nothing happen. Maybe you will know why. I have put this script on a PullChain :


Scriptname PullChain extends ObjectReference

ObjectReference Property SpawnMarker Auto
ActorBase Property Aeri Auto

Event OnActivate(ObjectReference PullChain02)
Door_Way_01.Lock(true, false);

SpawnMarker.PlaceActorAtMe(Aeri,4);

endEvent





SpawnMarker is a marker (blackplane)
Aeri is an Actor

I want to spawn Aeri on the blackplane when i activate the pull chain but nothing happen.
User avatar
Hella Beast
 
Posts: 3434
Joined: Mon Jul 16, 2007 2:50 am

Post » Wed Jun 20, 2012 3:46 am

Ok it's working, don't know why ^^

Thanks a lot for your help
User avatar
chirsty aggas
 
Posts: 3396
Joined: Wed Oct 04, 2006 9:23 am


Return to V - Skyrim