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 Zone Question Please Help

Author
Message
Fireflower
12
Years of Service
User Offline
Joined: 12th Feb 2012
Location:
Posted: 13th Feb 2012 06:17
I am trying to get a simultaneous reaction. I think I might have it figured out. Any way what I want to happen is when the player picks up this battery and walks over to a derelict car the car turns in to a new one just like it. I need the battery to activate the trigger zone. Then the trigger zone to activate the derelict car to "destroy" its self or disappear. Then upon disappearing spawn the new one in its place. I have read everything I can get my hands on as far as tutorials and forum posts but I just can figure it out. Quite a few of the things I read spoke of a activateifused.fpi but I can't find it in the script bank file. Is it something I have to script my self? Please help!
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 13th Feb 2012 20:24
"Activateifused" is a command in the script to activate the name of the entity specified in the IFUsed field of an entity or trigger.

"Appearifactivate.fpi" is the start script you would assign things like a trigger, story zone, win zone, sound zone, decals, etc. The script waits for the element to be activated and then it "activates" or appears.

For example, I script my battery so that once I pick it up, it has the "activateifused=1" command in the script. In the properties for the battery, I set the name of the trigger to be activated. I place the trigger where I need it and edit the properties for it by assigning the "appearifactivate.fpi" to the Start script for the trigger.

In case you need the script for "appearifactivate.fpi, here it is:




Twitter: @NFoxMedia
Fireflower
12
Years of Service
User Offline
Joined: 12th Feb 2012
Location:
Posted: 15th Feb 2012 04:45
thanks for that it was helpful but i am still doing something wrong the battery info is set up like this
name: battery
static mode: no
start: appear1.fpi
main: pickup1.fpi
destroy: disappear1.fpi
use key:
if used: car
spawn at start?: yes

the trigger zone info looks like this
name: car
start: appearifactivated.fpi
main: plrinzone.fpi
destroy: disappear1.fpi
use key: battery
if used:

but it still does not work and i dont have the activate if used script
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 15th Feb 2012 10:08
For the trigger zone, try plrinzoneactivateused.fpi as the main script. Here it is;



Fireflower
12
Years of Service
User Offline
Joined: 12th Feb 2012
Location:
Posted: 15th Feb 2012 23:08
that didnt help but thank you for the suggestion

Login to post a reply

Server time is: 2024-11-24 01:43:32
Your offset time is: 2024-11-24 01:43:32