I think I should use a runtime trigger.
AddCondition(0, cf_trigger, "addisplayed", "My category", "ad_displayed", "Description for my condition!", "addisplayed");[/code:2k0zagp5]
[code:2k0zagp5]Cnds.prototype.addisplayed = function (state)
if I put this code
under instanceProto.onCreate = function()
Case 2 : if I put the same code under an action, it doesn't work: Acts.prototype.MyAction = function (myparam)
I tried to make :
and call from action: this.addisplayed(); but doens't work.
So how do I trigger the event from actions?
It seams that calling this.addisplayed(); from actions works but :
if I wrap it inside a function it doesn't