OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: pexmo on 09 Feb 2005, 08:45:50
-
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?
-
? _guy != player: goto "skip"
-
I also would like to have a line put in that checks if a player fires then setcaptive false.
-
Umh..
For that you need to use 'fired' eventHandler...
Put the following in the player's init field:
this addEventHandler ["fired",{this setCaptive false}]
No guarantees on the syntax.. :P