Papyrus Place at me

Post » Mon Jun 18, 2012 2:02 am

I am trying to make a lever spawn a skeever when pulled so I can test some stuff. I cannot figure out why this script is not working:



Scriptname zzzSpawnerLever extends ObjectReference


ObjectReference property SpawnPlacer auto
ActorBase property EncSkeever auto

Event OnActivate(ObjectReference triggerRef)

ObjectReference Rat = spawnplacer.PlaceAtMe (EncSkeever)
; Debug.TraceAndBox("Kinda Workin")

EndEvent

Then I went into properties and selected the x marker called spawnplacer and selected the EncSkeever for the skeever... what am I missing? When I pull the lever I can get it to trace "Kinda working" but thats all.
User avatar
claire ley
 
Posts: 3454
Joined: Fri Aug 04, 2006 7:48 pm

Post » Mon Jun 18, 2012 3:38 pm

What a coincidence, I just got done making a script that does the same thing. And as far as I can tell, it works.

Scriptname ActivatorSummonScript extends ObjectReferenceActorBase Property summonedActor AutoObjectReference Property summonLocation AutoEvent OnActivate(ObjectReference akActivator)	summonLocation.PlaceActorAtMe(summonedActor)EndEvent
User avatar
Lance Vannortwick
 
Posts: 3479
Joined: Thu Sep 27, 2007 5:30 pm

Post » Mon Jun 18, 2012 6:32 am

hmm I logged in to try again today and my x marker was gone... even though it was showing it the whole time last night while I was working. I made a new one and relinked it and boomshakalak, it worked
User avatar
SaVino GοΜ
 
Posts: 3360
Joined: Mon Sep 17, 2007 8:00 pm


Return to V - Skyrim