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 / My latest release - how to shoot the lock out of a door!

Author
Message
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 13th Jan 2009 00:34 Edited at: 13th Jan 2009 12:26
Have you ever wanted to be able to shoot a door lock to unlock it, but could never do it? Acually, it's been possible, since v1 at least!

Here's how-

Take an object about the size of the area you want to shoot, I used the scifi "torch" item. Place this item at the height of the door lock, and move it into the lock so it sticks out a little past the knob (so you can still shoot it despite box collision).

Give it this script:
. Set the door name as the "ifused" property of the object.


Give the door this script



It's simply a modified stock script, I don't even know which one, thank you FPI Editor. So it displays press enter to use rather than that key one

Make sure to have the object set as immoble, and isn't invincible... I just set the health to 1000, it works.

Have fun!

btw add slashes


*slap!*
Quiet yourself, think before posting, and maybe you won't be as ignorant as you seem.
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 13th Jan 2009 01:53
Thanks for the code.


__________________________________________________________
Make life a little easier and use FPI Editpad for your sctripting needs.

The past has a lot of memories to hold onto; but, today is chock full of new adventures, and, the future shouts out, "The best is yet to come!" -- TerryC
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 13th Jan 2009 02:53
np, I really needed to release something to the community again


*slap!*
Quiet yourself, think before posting, and maybe you won't be as ignorant as you seem.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th Jan 2009 09:16
Great idea! Nice thinking!


The one and only,


Toasty Fresh
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: In my office, making poly-eating models.
Posted: 13th Jan 2009 11:12
Can you make it so that when you shoot the lock the door just opens, not needing you to walk up and press enter?

Nice work. I might even try to make a rusty old iron lock for this script.

meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 13th Jan 2009 12:22 Edited at: 13th Jan 2009 12:27
@ Ply- just like all my ideas

Sure, lemme get that for ya now toasty


Ok, here it is:




*slap!*
Quiet yourself, think before posting, and maybe you won't be as ignorant as you seem.
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 13th Jan 2009 13:18
Put a link to this in the sticky at the top, then it won't get lost.

meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 13th Jan 2009 21:02
Sweet, my work, stickied!
Thanks ND


*slap!*
Quiet yourself, think before posting, and maybe you won't be as ignorant as you seem.
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 14th Jan 2009 16:15
thanks mate really good


Red Eye - The Game: Work In Progress - W.I.P.
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 14th Jan 2009 21:05
np, It was about time I gave somethin back again


*slap!*
Quiet yourself, think before posting, and maybe you won't be as ignorant as you seem.
john schwarcz
User Banned
Posted: 23rd Apr 2009 06:24
how do i make snippets into the actual script?

shadow666
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 23rd Apr 2009 14:48
Try reading the Community Guide.

john schwarcz
User Banned
Posted: 24th Apr 2009 10:49
sorry i mean, i did the things people told me to do, i saved it as an fpi. but it still didnt work...

shadow666
Sandante
16
Years of Service
User Offline
Joined: 9th Sep 2008
Location: Dark World
Posted: 24th Apr 2009 19:20
meteorite nice job, i was playing also with this, but i know nothing about scripting and found another way.

1, give the door the DOORREMOTE script.

2, give the entity the SWITCH script.
and the DESTROYANDACTIVATE.

3, destroy the entity and the door will open. but in this case
the door stays open.
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 25th Apr 2009 03:40 Edited at: 25th Apr 2009 03:43
Clever, makes me happy I released my thoughts first. Holy 3 month bumps, batman!

If you did it in notepad, save as type drop down should be "all files", or it will save as script.fpi.txt, and just be read as txt, not fpi

"I can't imagine what this place would have been like if I hadn't found you here." - BJ Hunnicutt
Braden 713
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Canada
Posted: 17th May 2009 04:19
I know there hasn't been a post here in a while, but I just found this and had to say it's fantastic! Great job man, thanks for the scripts
Kravenwolf
15
Years of Service
User Offline
Joined: 14th Apr 2009
Location: Silent Hill
Posted: 17th May 2009 04:45 Edited at: 17th May 2009 04:54
I'm suprised this thread only has 16 replies, I think it's a really good concept. Great work, meteorite. I've modeled a rusty padlock entity that players can use with your script. The download is attached to this post. Hopefully this will resurrect your thread.




-Kravenwolf

Success is not final--failure is not eternal.

Attachments

Login to view attachments
Wolf
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 17th May 2009 04:46
I`m glad it has a bump!

I`ll try this tomorrow

Braden 713
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Canada
Posted: 17th May 2009 05:10
Kravenwolf thats awesome! Thanks so much man thats perfect
Thraxas
Retired Moderator
18
Years of Service
User Offline
Joined: 8th Feb 2006
Location: The Avenging Axe, Turai
Posted: 17th May 2009 10:10
Quote: "I`m glad it has a bump! "


Me too, I seem to have missed this the first time around.

Thanks meteorite for the cool script and Kravenwolf for the nice model to go with it

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 17th May 2009 17:24
...this was already a great concept and script.

With Kravenwolf's model added to the mix, it just became fantastic!

meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 18th May 2009 02:04
Thanks Kraven, it works better than using an invisible flashlight

"I can't imagine what this place would have been like if I hadn't found you here." - BJ Hunnicutt
GraPix
User Banned
Posted: 18th May 2009 06:50
really useful script...

-GraPix

GraPix Entertainment

Login to post a reply

Server time is: 2024-11-25 01:58:06
Your offset time is: 2024-11-25 01:58:06