Home   Help Search Login Register  

Author Topic: detect if player did it  (Read 3271 times)

0 Members and 1 Guest are viewing this topic.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:detect if player did it
« Reply #30 on: 04 Jun 2005, 20:44:48 »
@Planck:
Exactly.
In eventHandler _this refers to the array of values that is passed by the eventHandler type into the script that the eventHandler executes...


So what Planck says is correct.
It never even occurred to me that you could be using the eventHandler the wrong way...

Quote
this AddEventHandler ["killed", {_this exec "court.sqs"}]
So this is how you need to do it...
« Last Edit: 04 Jun 2005, 20:46:33 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline 456820

  • Contributing Member
  • **
Re:detect if player did it
« Reply #31 on: 04 Jun 2005, 20:46:21 »
so why is this not working ?

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:detect if player did it
« Reply #32 on: 04 Jun 2005, 20:47:07 »
Check the edited post above...
You are executing the script the wrong way...
« Last Edit: 04 Jun 2005, 20:47:21 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline 456820

  • Contributing Member
  • **
Re:detect if player did it
« Reply #33 on: 04 Jun 2005, 20:53:36 »
YES thank you so much all of you i got it workng
topic solved