Quick script help.

Post » Sun Nov 15, 2015 11:36 pm

ObjectReference property myDoor autoActor property Actor01 autoEvent OnTriggerEnter(ObjectReference TriggerRef)    if (TriggerRef == Actor01)             Int OpenState = myDoor.GetOpenState() ; 1 = Open. 3 = Closed.            if (OpenState == 3                     myDoor.Lock(False)myDoor.SetOpen(True)                    myDoor.playAnimation("Open")                    endif    endifEndEvent
I'm script blind to this error -

psc(9,31): missing RPAREN at '\\r\\n'
User avatar
Marine x
 
Posts: 3327
Joined: Thu Mar 29, 2007 4:54 am

Post » Mon Nov 16, 2015 6:34 am

if (OpenState == 3 

A right parenthesis is missing.

User avatar
Michael Korkia
 
Posts: 3498
Joined: Mon Jul 23, 2007 7:58 pm

Post » Mon Nov 16, 2015 4:32 am

...which is also why it says "missing RPAREN..." ,-)

User avatar
xx_Jess_xx
 
Posts: 3371
Joined: Thu Nov 30, 2006 12:01 pm

Post » Mon Nov 16, 2015 7:40 am

Appreciated.

User avatar
Jessica Colville
 
Posts: 3349
Joined: Wed Oct 18, 2006 6:53 pm


Return to V - Skyrim

cron