TheDarkReaper Posted November 15, 2010 Share Posted November 15, 2010 I have a script thats not working for me competentfake made the script. I have 'Electrical Switch' with the script on it. then i have the 'Carrier01BridgeNew' with its REF as 'Carrier01BridgeNewREF' They are in the same world space. the bridge is the same as the Rivet City with NO Navmesh. Here is the script i got. competentfake[/url] ' timestamp='12 November 2010' post='IN PM'] scn NewBridgeSCT Begin OnActivate If Carrier01BridgeNewREF.GetOpenState == 2 ;if bridge is opening Return ;end script Elseif Carrier01BridgeNewREF.GetOpenState == 4 ;if bridge is closing Return ;end script Elseif Carrier01BridgeNewREF.GetOpenState == 3 ;Bridge is closed/inaccessible Carrier01BridgeNewREF.SetOpenState 1 ;open it ElseIf Carrier01BridgeNewREF.GetOpenState == 1 ;Bridge is open/accessible Carrier01BridgeNewREF.SetOpenState 0 ;close it EndIfEnd Link to comment Share on other sites More sharing options...
Recommended Posts