Jump to content

Recommended Posts

Posted (edited)

I'm having trouble with what should be a fairly simple script.

I've checked the GECK site and these forums but still can't get it to work quite right.

 

What I'm trying to do is replace a creature ref, that is moving around an interior cell, with a staic ref at the beginining of a quest.

Both references disable and enable correctly, but the staic ref enables at its original position in the cell instead of where the creature ref is currently located.

 

 

scn QuestScript

float crAngle
float crPosX
float crPosY
float crPosZ

short DoOnceD

; Disables CRref and enables CRStaticref in its place at quest start

Begin GameMode

if GetStage Quest >= 10
if ( DoOnceD != 1 )
set crPosX to crref.GetPos x
set crPosY to crref.GetPos y
set crPosZ to crref.GetPos z
set crAngle to crref.GetAngle z
crref.Disable
set DoOnceD to 1
crstaticref.SetPos x crPosX
crstaticref.SetPos y crPosY
crstaticref.SetPos z crPosZ
crstaticref.SetAngle z crAngle
crstaticref.Enable
endif
endif

End

 

The static ref is initially disabled.

Tips or advice are appreciated.

Edited by Nomumbra
Posted (edited)

Hmm, thats probably it then. I guess I looked at the Bethsofts GECK site , which doesn't have that info, instead of the GECK wiki you linked.

I better change all my shortcuts to the wiki since it seems to be more recent with better info.

 

Thanks

Edited by Nomumbra
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...