Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Check if _guy has is not player then make him go to #skip?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Check if _guy has is not player then make him go to #skip? (Read 455 times)
0 Members and 1 Guest are viewing this topic.
pexmo
Members
I'm a llama!
Check if _guy has is not player then make him go to #skip?
«
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?
Logged
h-
OFPEC Site
Administrator
Formerly HateR_Kint
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"
Logged
Project MCAR
---
Northern Fronts
---
Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.
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.
Logged
h-
OFPEC Site
Administrator
Formerly HateR_Kint
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..
Logged
Project MCAR
---
Northern Fronts
---
Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Check if _guy has is not player then make him go to #skip?
Top of page