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 / Switches, bolders, explosives

Author
Message
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 16th Feb 2008 20:59 Edited at: 16th Feb 2008 21:06
Hi.

I am trying to create a scenario where a constant stream of enemies comes through a hole in a wall. Then, with the flick of a switch barrels around the hole explode and a boulder appears to block the enemies coming through.

I have managed to create a constant stream of enemies with waypoints. I simply tell the enemy to die after 10 seconds when its hidden behind a wall and then it respawns.

The boulder and explosives are harder though.

I've set the name of the barrels to "bomb" and used this script:



I also have an immobile boulder names "bomb" which appears when the switch is hit, blocking the gap. Here is my problem:

The barrels do NOT explode, they just disappear.

The enemies can walk through the boulder. I tried making the physical wieght of a dynamic boulder a very large number but the enemies just pushed it out of the way, there is also the case of the physics. When spawning a boulder it may not cover the entire gap in the wall...

Any help would be really appreciated.

Physics are on both the boulder and characters.


Spartans! Ready your breakfast and eat hearty... For tonight, we dine in Hell!
Pride
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Eastern USA
Posted: 16th Feb 2008 21:16
Turn physics off for the boulder, so nothing can push it. Or, turn IsImmobile to YES for the boulder so it can't move.

Free blood...[href="http://forum.thegamecreators.com/?m=forum_view&t=123723&b=24]Here[href] and [href=http://forum.thegamecreators.com/?m=forum_view&t=124087&b=24]Here[href].
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 16th Feb 2008 21:21 Edited at: 16th Feb 2008 21:24
Yeh, did both of those.

I think its to do with the waypoints. I just killed the physics of the boulder and the enemies got jammed. However, they still manage to force under it after a few seconds, literally going horizontally through the bottom of the boulder. Ive just witnessed enemies sliding horizontally under a boulder to continue on its way.

This now gets hard. How can I spawn a boulder, explode barrels (need help with that) and stop enemy spawn points all with one switch ; /


Spartans! Ready your breakfast and eat hearty... For tonight, we dine in Hell!
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 17th Feb 2008 12:41
Anyone?


Spartans! Ready your breakfast and eat hearty... For tonight, we dine in Hell!
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 17th Feb 2008 15:23
You give them all the name in the switches IfUsed box.....

So it'll activate them all at once.....

It's not hard..

Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 17th Feb 2008 16:27
no, hang on, have you even read my post?

The barrels disappear, the NPCs go under the boulder.

Read next time please.


Spartans! Ready your breakfast and eat hearty... For tonight, we dine in Hell!
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 17th Feb 2008 16:41
get the tiniest entity you can, and set it's SPAWN AT START to NO, it's SPAWN LIFE to 1, and set IS EXPLODABLE to YES....

then set it next to the barrels, it'll explode then they will....

That destroy script deletes the entity before it can process it's explosive death, so give the barrels the default.fpi script....

About your boulder, well, FPSC can't handle dynamic vs dynamic very well....

And stopping your enemies spawning? Give them this:


Give it as their Initial AI....

Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 17th Feb 2008 16:51
Thanks alot mate, really appreciated


Spartans! Ready your breakfast and eat hearty... For tonight, we dine in Hell!
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 17th Feb 2008 17:12
No Problem....

Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 17th Feb 2008 18:26
Hmm, the spawn script didnt work. It would be easier if when the switch was pressed the enemies just stopped following the waypoint. Not sure how i would do that though.


Spartans! Ready your breakfast and eat hearty... For tonight, we dine in Hell!
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 19th Feb 2008 19:12
Anyone? :S


Spartans! Ready your breakfast and eat hearty... For tonight, we dine in Hell!
Valkynaz
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: I forget
Posted: 23rd Feb 2008 18:03
I'm not sure but you could try spawning a wall in front of the hole, and behind the boulder which would keep the enemies from getting out. The barrels I'm not sure of though...



Mmmm...sausage and buttermilk...

Login to post a reply

Server time is: 2024-11-24 06:46:36
Your offset time is: 2024-11-24 06:46:36