Home   Help Search Login Register  

Author Topic: Check if _guy has is not player then make him go to #skip?  (Read 454 times)

0 Members and 1 Guest are viewing this topic.

Offline pexmo

  • Members
  • *
  • I'm a llama!
I want to add a line to a script that checks if _guy is NOT a player. If _guy is not a player i want him to go directly to the #skip at the end of the script. How do i do this?

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Check if _guy has is not player then make him go to #skip?
« Reply #1 on: 09 Feb 2005, 09:04:46 »
? _guy != player: goto "skip"
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline pexmo

  • Members
  • *
  • I'm a llama!
Re:Check if _guy has is not player then make him go to #skip?
« Reply #2 on: 09 Feb 2005, 09:06:32 »
I also would like to have a line put in that checks if a player fires then setcaptive false.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Check if _guy has is not player then make him go to #skip?
« Reply #3 on: 09 Feb 2005, 09:54:38 »
Umh..
For that you need to use 'fired' eventHandler...

Put the following in the player's init field:
Code: [Select]
this addEventHandler ["fired",{this setCaptive false}]
No guarantees on the syntax.. :P
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.