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 / Time Bomb

Author
Message
Wilbur
16
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Scotland
Posted: 18th Aug 2008 22:37
Hi all,
I'm trying to write my own timer bomb script. What happens is this
. FIrst the player walks up to the object that you wish tod estroy. A hud is displayed asking to press [enter] to plant a bomb. If they press enter it displays the text "Bomb Planted". It then goes onto a countdown of 5,4,3,2,1. After this it explodes. Unfortunately, the script stops working at state 3. Any help would be greatly appreciated.



Thanks,
Wilbur the Greatful

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 19th Aug 2008 03:40 Edited at: 19th Aug 2008 04:02
I tossed the script into my trusty fpi editpad and found this:


Replace the colon with a comma before state=1 here



Replace the colon with a comma before state=4 here


Those are the only problems and other then that the script should work.

EDIT
I just tested it. it does work as long as you make those edits.


Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 19th Aug 2008 05:26
and hudshow= is not a condition Wilbur...

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 19th Aug 2008 17:41
In state2 when it goes hudshow...:State=1

the colon should be a comma.

Wilbur
16
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Scotland
Posted: 19th Aug 2008 17:55
Thanks everyone!

Wilbur

Diablos Bud
16
Years of Service
User Offline
Joined: 8th Aug 2008
Location:
Posted: 19th Aug 2008 20:43 Edited at: 19th Aug 2008 20:46
Wilbur: Do you mind if I edit this script a bit, and put it into my game giving you credit as a scripter in my credits? Basically what I want to do with it is place it as an objective in my new multiplayer game Universal Warfare (it has objective mode on multiplayer, comes with Lemur V2: Free Edition), but edit it so you have to be holding a specific item, and make it where the time limit is 30 seconds?

Diablosbud Productions - a name for the game's developed by me.
Wilbur
16
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Scotland
Posted: 19th Aug 2008 21:40
Hi,
I don't mind at all. In fact, I intend to releice a script pack which uncludes huds, etc... Very soon.

Take it, use it and there is no need to give credit. If you want the huds e-mail me.

Wilbur

jjmman
16
Years of Service
User Offline
Joined: 24th Aug 2008
Location: who wants to know?????
Posted: 27th Aug 2008 23:55
hey wilber,
what is the modle that you are uusing for the timebomb, and where would we need to place the code in the game for this to work

any help would be appreceated.

dont regret toing things, regret getting caugt

Login to post a reply

Server time is: 2024-11-24 11:32:10
Your offset time is: 2024-11-24 11:32:10