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 / Deactivating script help

Author
Message
Prince
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location:
Posted: 29th Sep 2006 22:20
I am trying to suspend or say deactivate a crate from exploding using a switch. I dont know what I am doing wrong. I tried different stuff but couldnt get it working. I am not a scripter so any scripting gurus around please help

Code for Crate


Normal Switch.fpi for switch

Thanks in anticipation

Prince
Airslide
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 30th Sep 2006 06:01
The best way to acheive this would be to have alot of force, have the entity weigh a bit more (or less, expirement) and set to explosive. Unfourtnetly there is no way to directly trigger an explosion from a script.

My Apps:
Decal Maker
Prince
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location:
Posted: 30th Sep 2006 10:27
I could trigger an explosion from the script and also adjusting the properties as u mentioned. It explodes. My goal is to defuse/deactivate it so that it doesn't explode.
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 1st Oct 2006 04:30
Here's an idea... don't place the crate in the game! hehehe

Nue B. or not Nue B. That is the question.
Prince
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location:
Posted: 1st Oct 2006 10:57
Hey Nue B. After reading your replies on other threads recently I thought you'd have an answer since u claim to be scripting genius but you disappoint me...

Anyways.. here's my idea. activate the crate (spawn at start=No) through a trigger zone and activate or deactivate the zone through a switch. It worked for me. And no I dont claim am a scripting genius ..
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 8th Oct 2006 08:27
if you want a landmine type thing simple have

:activated=0,plrdistwithin=100:plraddhealth=-500

if you activate it it won't kill the player, add in the explosion decal and sound on your own or get someone else to (I don't do media)

Wisemen are hard to find, they are tarnished by sayings and quotes that are not of their true nature.
Prince
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location:
Posted: 9th Oct 2006 19:10
Hmmm.. sure I will try that. Can you tell me which decal has which number i know its from 1-6 but donno what is what?

Thanks for your help

Login to post a reply

Server time is: 2024-11-23 01:16:28
Your offset time is: 2024-11-23 01:16:28