Jump to content

Script Problem ook at it and tell me where i'm wrong...


reaper9111

Recommended Posts

i want that gate to open when the pc get close, and to close when pc get far....

 

 

 

Scn xxx

 

Short Open

 

 

Begin GameMode

 

If Player.GetDistance GateOpener >= 300

If open == 0

xxx01.playgroup forward 1

xxx02.playgroup forward 1

Set Open to 1

Debug;Message "Gate Openning"

EndIf

 

Else

 

If open == 1

If Player.GetDistance GateOpener < 300

xxx01.playgroup backward 1

xxx02.playgroup backward 1

Set Open to 0

Debug;Message "Gate Closing"

EndIf

EndIf

EndIf

 

End

Link to comment
Share on other sites

  • Recently Browsing   0 members

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