Jump to content

scripting help needed


steve750

Recommended Posts

Scn TPRelocker1
ref myref

Begin OnTriggerEnter

 set myref to GetLinkedRef

 if IsActionRef Player == 1 
   myref.SetOpenState 0
   myref.lock 255
 endif
End

 

Edit:

Link the trigger to the door and attach this script to the trigger.

 

Edit:

"myref" is a reference id place holder which should be gotten by "GetLinkedRef"

Edited by tortured Tomato
Link to comment
Share on other sites

Okay, forgot the lock again line:

Scn TPRelocker1
ref myref

Begin OnTriggerEnter

 set myref to GetLinkedRef

 if IsActionRef Player == 1 
   myref.SetOpenState 0
   myref.lock 255
 endif
End

 

should work, but I try it now myself in geck.

Link to comment
Share on other sites

where youve put myref thats whhere i should put the gate ref ye origenal is name CLFenceGateRoad01 but i should enter my own ref ye

edit

im using a generic enable trigger ye

Edited by steve750
Link to comment
Share on other sites

  • Recently Browsing   0 members

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