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 a decal ?

Author
Message
biohazardNL
15
Years of Service
User Offline
Joined: 26th Oct 2009
Location: netherlands
Posted: 12th Sep 2010 01:59
hi guys I want to trigger a decal using the trigger zone but don't know how to. the idea is:

player walks into trigger zone, explosion decal go's on and after 1 time it disappear again.

the explosions are in the animated sprite pack will that work.

[href]http://tbhproductions.com[/href]
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 13th Sep 2010 03:58 Edited at: 13th Sep 2010 04:01
Set your Trigger Zone's AIMAIN to plrinzoneactivateused.fpi (it's a stock script), and then put the decals name in the trigger zone's IFUSED field.

Then try this
for your Decal's AIMAIN.

I modified it from a stock decal script, and it has been tested with the stock fire.

Let me know if it works for those pack decals.

   Conjured Entertainment

 WARNING: Intense Madness
MaimedSoldier
14
Years of Service
User Offline
Joined: 2nd Nov 2010
Location: In The Matrix
Posted: 16th Dec 2010 09:00 Edited at: 16th Dec 2010 09:02
I tired it.


Works with everything.

but some bugs:

when u spawn a decal and it says Decalflat in AIMAIN, if you change that to Conjured's Script it spawns like wall. and sound is still there.

All else works so far.

Now I have a question.

is there a way to change it so it plays decal with sound only once?

War Doesn't Make boys men, it makes men dead.
AJGAMES
14
Years of Service
User Offline
Joined: 9th Nov 2010
Location:
Posted: 14th Feb 2011 04:19
Now I have an answer to your question. See how this works for you -
Deactivate the sound on the decal completely.
Then, right-click on the trigger zone that spawns the decal, and change the trigger zone's sound to the sound you want to hear play once. It will not be looped, but you may have to adjust the volume of the sound according to the placement of your decal in relation to the player.

I hope I've been able to help!


AJGAMES,2010
Rocketless Scientist
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location:
Posted: 18th Apr 2011 01:45
THANK YOU SO MUCH ! I was trying to figure out how to do this for 2 weeks before I finally gave up!

Put some work into it, and you can be one of the best!

Login to post a reply

Server time is: 2024-11-24 08:44:30
Your offset time is: 2024-11-24 08:44:30