Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Made a script to make enemies activate trigger zones

Author
Message
Evil Robot
13
Years of Service
User Offline
Joined: 23rd Jan 2011
Location:
Posted: 4th Feb 2011 03:23
I have made a script
that is supposed to activate a trigger zone when an enemy entity walks in to it. The problem is that it does not work the way it was intended. The trigger zone activates instantly when the game starts.

What have I made wrong?
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 4th Feb 2011 06:57
I believe "entitywithinzone=" doesn't work - try "anywithinzone" instead.

Ched

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Evil Robot
13
Years of Service
User Offline
Joined: 23rd Jan 2011
Location:
Posted: 4th Feb 2011 09:28 Edited at: 4th Feb 2011 09:30
Yes I have tried that but it will activate the trigger zone for any identity, enemy, The Player or “dead” objects alike. I wish that only one specific entity will activate the zone.

I have tested with anykeywithinzone=1
but it only works for “dead” entities like a crate. Not for “living” enemies strangely.

Yes I have filled in the Use Key: [Nameoftheentity] and named the enemies the correct names if anyone wonders. But as I said this condition works fine for a crate but NOT for an enemy like a Whermacht soldier or Colonel X.
Is this a bug or what?
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 4th Feb 2011 12:03
One possible way is to try and design your level so that no 'dead' entities are ever within the zone, and use both "anywithinzone=1" and "plrwithinzone=0" to activate your effect.

"plrwithinzone=0" is true when the player is not within the zone.

Another (highly dubious) method may be to set the trigger zones' target as the entity you want "settargetname=EntityName" and then use the condition "reachtarget" to activate your effect. I'm not totally convinced this will work with trigger zones, but you might as well give it a try.

This isn't really a bug - it's doing what the condition was designed to do. It just doesn't do what you want it to do.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]

Login to post a reply

Server time is: 2024-11-24 13:07:39
Your offset time is: 2024-11-24 13:07:39