I'm afraid this is going to take some explaining as I have tried every which way but loose.
First of all, it is a condition. The definition for this condition:
is true when an entity is within the trigger zone.
It does not tell you which trigger zone and therefore I assumed at first any trigger zone.
The first thing I tried to do before finding this possibility was using the script "zoneanyactivate.fpi" which comes with FPSC.
Here is the code which is not my code but TGC's.
;Artificial Intelligence Script
;Header
desc = Zone Activate if any entity enters it
;Triggers
:state=0,anywithinzone=1:activateifused=1,state=1,sound=$0
:state=0,anywithinzone=0:activateifused=0,state=0
;End of Script
You notice that it uses the "anywithinzone" condition and has a value of 1 or 0 (true or false). This I assumed was something you put in the trigger zone main. I tried that. Doesn't work with an entity.
Here is what I put for the entity main along with the above TZ main.
:state=0,plrdistfurther=41,plrcanbeseen:rotatetoplr,movefore=10,animate=2
:state=0,plrdistwithin=40:freeze,animate=1
:state=0,activated=1:destroy,state=1
:state=1:none
The TZ code should have assigned the activation variable of the entity within the ifused parameter a 1 and therefore condition
state=0,activated=1 should have been true. But nothing happens when the entity walks through the zone.
Before I continue, I'll let you wrap your head around this one first as it uses a different condition, other than the one I was asking about. Although, I'm trying to get the same result: An entity activating a trigger zone.
If anybody has used "zoneanyactivate.fpi" that TGC supplies and it works for you let me know how you used it. I'm at a loss.
BTW, xplosys, I was using it with an entity main as it seems the description of the condtion led me to believe it would be used with the entity rather than the TZ because TGC already had an fpi (supposedly) for the trigger zone.