Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: removePublicVariableEventHandler ?  (Read 2208 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
removePublicVariableEventHandler ?
« on: 04 Sep 2008, 19:04:16 »
Does a PublicVariableEventHandler (PVEH) only fire once(first time variable is PV'd)? If not how do you delete it?

"blah" addPublicVariableEventHandler {}  ?
or
"blah" addPublicVariableEventHandler {call compile "blah" + "= nil;";}   ?
« Last Edit: 04 Sep 2008, 19:29:19 by Mr.Peanut »
urp!

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: removePublicVariableEventHandler ?
« Reply #1 on: 04 Sep 2008, 19:28:35 »
It fires every time publicVariable is used. If you want it to only happen once, only use publicVariable once on that variable ;P
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: removePublicVariableEventHandler ?
« Reply #2 on: 04 Sep 2008, 19:29:52 »
That sucks. Destroying the variable does nothing?
urp!

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: removePublicVariableEventHandler ?
« Reply #3 on: 04 Sep 2008, 23:29:08 »
Well, I've never actually tried that. It really depends how they implemented it, so could go either way...

As I said, either you want to know about changes, or you don't. Not really worth only finding about changes the first time a variable is changed, is there?
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: removePublicVariableEventHandler ?
« Reply #4 on: 05 Sep 2008, 14:52:35 »
It depends on whether you want to dynamically create new "ports" to help handshake, or sort/queue them on one establish "port".
« Last Edit: 05 Sep 2008, 14:54:24 by Mr.Peanut »
urp!