phoneyLogic Posted April 27, 2011 Share Posted April 27, 2011 can you paste in your script? Link to comment Share on other sites More sharing options...
steve750 Posted April 27, 2011 Author Share Posted April 27, 2011 the gate wont seem to keep any id that i give it Link to comment Share on other sites More sharing options...
steve750 Posted April 27, 2011 Author Share Posted April 27, 2011 Scn TPRelocker1 Begin OnTriggerEnter Player TPFrontGateRoad01.lock 255 If TPFrontGateRoad01.GetOpenState == 1TPFrontGateRoad01.SetOpenState 0endIf End Link to comment Share on other sites More sharing options...
steve750 Posted April 27, 2011 Author Share Posted April 27, 2011 that seems ok now, i think the problem is my reference editor id just wont seem to stay Link to comment Share on other sites More sharing options...
steve750 Posted April 27, 2011 Author Share Posted April 27, 2011 ha ha have noticed actually called the gate fencegateroad01 not frontgateroad01 but now wont seem to let me change either Link to comment Share on other sites More sharing options...
phoneyLogic Posted April 27, 2011 Share Posted April 27, 2011 (edited) 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 April 27, 2011 by tortured Tomato Link to comment Share on other sites More sharing options...
steve750 Posted April 27, 2011 Author Share Posted April 27, 2011 i need a beer now lol Link to comment Share on other sites More sharing options...
phoneyLogic Posted April 27, 2011 Share Posted April 27, 2011 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 More sharing options...
steve750 Posted April 27, 2011 Author Share Posted April 27, 2011 started again can link the gate to the trigger via enable parent but not the otherway round :( Link to comment Share on other sites More sharing options...
steve750 Posted April 27, 2011 Author Share Posted April 27, 2011 (edited) where youve put myref thats whhere i should put the gate ref ye origenal is name CLFenceGateRoad01 but i should enter my own ref yeedit im using a generic enable trigger ye Edited April 27, 2011 by steve750 Link to comment Share on other sites More sharing options...
Recommended Posts