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 / Trigger point does not activate an entity

Author
Message
mnemonic
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 15th Dec 2011 14:44
What I want to happen in the game: The player is walking in a corridor when suddenly an enemy appear behind him/her.

What I have done. I have placed out an enemy in the corridor and a Trigger point just ahead of the entity. When the player comes into the zone of the trigger point, it will activate the enemy behind.

The enemy properties: Name = Enemy, Spawn at start = No
The Trigger zone properties: IfUsed = Enemy

I have even tried to put other objects and activate them such as crates with the same result: They just don't Spawn!

This should be enough, but appearently something is wrong. Anyone have any idea?

Best regards
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 15th Dec 2011 15:46
look into the zonescript, i think it says activateallinzone. search for the one that says activateifused.
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 15th Dec 2011 15:52
change the script to plrwithinzoneactivate

I appear to have burst into flames...
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 15th Dec 2011 15:59
Also make sure that in the enemy's properties, that 'max at any time' and 'maximum spawn' (both can be found right underneath the 'spawn at start' field) are both set to '1'.

angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 15th Dec 2011 16:22
or plrinzoneactivateused.fpi, sorry I wasn't at my main computer

I appear to have burst into flames...
gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 15th Dec 2011 16:24
you need to set on the character:
the 'name' to (what ever you want)
'the spawn at start' to (no)
'the spawn after delay' to (yes)

trigger.
,plrinzoneactivateused, script as main
and the name of the entity as the 'if used' section

''Make sure your hands are clean before you point the finger''

Login to post a reply

Server time is: 2024-11-24 05:00:50
Your offset time is: 2024-11-24 05:00:50