Place at me problem

Post » Tue Jun 19, 2012 3:20 pm

I'm trying to get the dwemer Sphere prefab trap to work differently.
I want to pull a lever and THEN I want the creature to appear in the furniture thingie on the wall (centurionport).
This wouldn't be so hard since I could just change the triggerbox to a lever.

What I also want is that this can be repeated on every activation. I think using the normal setup will not work since it uses a single placed leveled actor.


Now I'm using Placeatme


[size=5]
[/size]Objectreference Property markerproperty autoauto STATE waitingForPlayerEVENT OnActivate(ObjectReference akactionref)Markerproperty.PlaceAtMe(Game.GetForm(0x0010EC89))endEVENTendSTATESTATE hasBeenTriggered; this is an empty state.endSTATE

Simultaneously I use an script onactivate script to play the open and close animations on the centurionport furniture.

It sort of works, but not entirely as wanted.

THe creature is placed at the foot of the furniture, not starting in the "hole". Normally the creature that is placed is linked to the furniture in the ambush script and I guess that makes it "" sit" in the hole somehow (it's using the furniture)

How can I make the placed creature (it has no reference I can select in the renderwindow) do things, how do I select it and make it sit in the furniture and/or enable it (I could let it start disabled with the placeatme command but I don't know how I would enable it after that.)
User avatar
ladyflames
 
Posts: 3355
Joined: Sat Nov 25, 2006 9:45 am

Return to V - Skyrim