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 / destroy object via a switch

Author
Message
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 22nd Apr 2011 06:57
is there a script which allow the player to activate a switch causing an object to be destroyed?
Anigma
13
Years of Service
User Offline
Joined: 25th Mar 2011
Location:
Posted: 22nd Apr 2011 08:41
I don't think there's a stock script like that but it should be easy to do. Try this as the main script for the item you want to destroy (modified version of doorremote.fpi):



Of course you'll need to set it up as an explosive item for this to work, otherwise it will just disappear.

Once you've set that up, just put the name of the thing you want to explode as the Activate If Used property on your switch and it should work. I didn't test it tho, so let me know if it doesn't work and I'll play around with it.

It compiled! Ship it!
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 22nd Apr 2011 09:53
thank you so much, that worked perfectly!

Login to post a reply

Server time is: 2024-11-24 08:25:47
Your offset time is: 2024-11-24 08:25:47