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 / press enter to pick up item

Author
Message
1bellb
14
Years of Service
User Offline
Joined: 25th Feb 2010
Location: York, UK
Posted: 22nd Apr 2012 16:59
Hi, I have this script and iv been playing around with it for ages and I just cant get it to work, iv got the code working for the main part, but it wont display the hud message, or I can get it displaying the hud message, but then the code doesnt do what its supposed to do.
Basically I have a toolbox with the script below. Then I have a Vent that requires a key to open it, but iv altered that script to say its bolted and that you need to find some tools to open it, however I dont want the user just to walk up to the tool box and collect the tools, I want to make them press enter on it to collect the tools.
Here is the code I have so far...
whats wrong with it?
Thanks in advance

Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 22nd Apr 2012 19:55 Edited at: 22nd Apr 2012 19:56
hi,
first a small tip: when a script not work, look in standart scripts or search in the forum! and use fpi pad to script. it shows your standart mistakes!

i do it for you:


your mistake: you dont make a difference between action and condition
1bellb
14
Years of Service
User Offline
Joined: 25th Feb 2010
Location: York, UK
Posted: 23rd Apr 2012 09:44
Hi, thanks for the reply, but that script doesnt work either, but im downloading that fpi pad as I type this so ill have a look at that.

Ben
1bellb
14
Years of Service
User Offline
Joined: 25th Feb 2010
Location: York, UK
Posted: 23rd Apr 2012 10:10
Ok, I did a bit of searching like you said and put this together which seems to work fine



Thanks for your help
Ben
Ross tra damus
3D Media Maker
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 23rd Apr 2012 15:35
1bellb

:state=3:playertake,,state=4

You should delete 'one' of the 'commas' in this line were you can see 'two' presently.

Its just to clean the script.

Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 23rd Apr 2012 17:04 Edited at: 23rd Apr 2012 22:33
ok sry i dont have much time these days, so i cant spend much time on your script

i dont test it in fpsc, i just script it with fpi pad

great that your script now work!!!
i rewrite it!! EDIT: i rewrite it again because the hudfadeout command dont work with hudshow correctly so i use hudunshow!!


EDIT: THE SCRIPT is functional, i test it in fpsc free 1.19
and it works perfekt for me


Yes, i´m a noob, but i like it
1bellb
14
Years of Service
User Offline
Joined: 25th Feb 2010
Location: York, UK
Posted: 23rd Apr 2012 19:38
Thanks for spotting that "Ross tra damus", but I dont want to touch it just in case it stops working LOL, but ill make a copy of the file tomorrow and see if it makes a difference

and thanks "Corno_1", ill have a look at that tomorrow and see if it does anything different

Thanks again
Ben

Login to post a reply

Server time is: 2024-11-23 23:40:34
Your offset time is: 2024-11-23 23:40:34