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 / Walk by and entity explodes...What is wrong with my script?

Author
Message
5hunter6
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location: Looking at the screen, same as you
Posted: 25th Dec 2006 00:19
Ok, so for my game I tried to make it so that when you walk through a hallway the two cylinders explode. I tried scripting it but that didn't work. I thought of two variations of the script and both didn't work. Can someone help me.

Script 1


script 2


xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 25th Dec 2006 00:54
Two problems:

1. The player cannot get within "1". Try plrdistwithin=50.
2. destroy will make the entity disappear, not blow up.

Exploding Objects explode when a force greater than themselves is applied. Shooting them, making them fall or making something fall on them will do it.

You will have to use your imagination.

Best.

I'm sorry, my answers are limited. You must ask the right question.

RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 25th Dec 2006 07:38
Why don't you just make an invisible entity set it's strength to 1 so when you step on it it "Dies" and set EXPLODABLE to yes or on. That is what I would do instead of go through a bunch of scripting.

Tiggle Bitties

Login to post a reply

Server time is: 2024-11-23 07:20:21
Your offset time is: 2024-11-23 07:20:21