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 Explosion?!

Author
Message
lozza
18
Years of Service
User Offline
Joined: 9th Mar 2006
Location: Somewhere over the rainbow
Posted: 9th Nov 2006 20:34
I am basing my game on world war 2, and I was thinking that they had lots of explosions in their bankers and things! My question is: Is there a way for an object to explode when I walk into a trigger zone?

Thanks
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 9th Nov 2006 21:37
yes... yes, it is.

Nue B. or not Nue B. That is the question.
Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 9th Nov 2006 22:35
Quote: "yes... yes, it is."


well, how?

filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 9th Nov 2006 23:42
I had tried a lot to do this (for my Oct level design contest!), but failed

In the end I had to make do with spawning a small vial (with strength=1,explodable=yes,damage=100) a little above the floor. And it should fall close to a barrel (or whatever you want to to explode!), and set that strength to around 10 (just so that it doesnt break otherwise) and set the damage to around 100 or so.

Let me know if you have problems with that.

-filya

p.s: it would be better to make that vial invisible, but if the explosion is far away from the trigger zone, it wouldnt matter.

-- n00b at playing games...and now at making em too :p --
lozza
18
Years of Service
User Offline
Joined: 9th Mar 2006
Location: Somewhere over the rainbow
Posted: 10th Nov 2006 17:21
Thanks!
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 10th Nov 2006 22:01 Edited at: 10th Nov 2006 22:01
:state=X,activated=1:destroy

Nue B. or not Nue B. That is the question.
filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 11th Nov 2006 00:25
I had tried that NueB, but for some reason, all I would get is the object disappearing
No explosion

-- n00b at playing games...and now at making em too :p --
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 11th Nov 2006 02:36 Edited at: 11th Nov 2006 02:40
Give it the flamable.fpi for it's main script.
Set it to "Spawn at start=NO"
and when you activate it with the triggerzone it will explode!

Nue B. or not Nue B. That is the question.
filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 11th Nov 2006 08:38
hmm...will have to try it sometime. Thanks

-- n00b at playing games...and now at making em too :p --
handerhan
18
Years of Service
User Offline
Joined: 13th Nov 2006
Location: USA USA USA USA USA USA
Posted: 16th Nov 2006 03:20
hi im new is there any way you can show me the script in full version so i xcan see what it looks like thanks!
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 18th Nov 2006 05:04
Quote: "Give it the flamable.fpi for it's main script.
Set it to "Spawn at start=NO"
and when you activate it with the triggerzone it will explode!"

Put the entity's name in the triggerzone 'if used'field.
You must ensure the exploding entity is enclosed within the trigger zone for this to work,use the shift key to expand the zone.The flamable.fpi script can be found in scriptbank/destroy folder.
Set the entity's strength to 1, and physics force damage to 1000.
Avenging Eagle
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 18th Nov 2006 16:52
Search the forums, i asked a similar question about having explosions go off when you get near them and only do it once.

AE

Login to post a reply

Server time is: 2024-11-23 04:20:11
Your offset time is: 2024-11-23 04:20:11