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 / A Script im messing around with..

Author
Message
Kalex91
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Isle of Wight / UK
Posted: 3rd Feb 2010 23:40
I am trying to put a script together to make a door open when you shoot it, ive probably done it completely wrong before anyone says but was woundering if anyone could do anything with it.



give the door 1 strenth and put the above code in the destroyed bar and ive put default.fpi in main.
Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 4th Feb 2010 01:06
dont you have to setframe before you can incframe? I'm not good with those commands. I might also add a :shotdamage=1 command in there, because as it is, I don't see anything about shooting the door.

(although I could be wrong. I haven't used FPSC in months)



to fenix mod!
Marc Steene
FPSC Master
19
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 4th Feb 2010 03:50
Just change the condition in the real door script which makes it open (plrusingaction I think) and swap it with shotdamage=1 etc.


[b]FPSC MIGRATION: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
Kalex91
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Isle of Wight / UK
Posted: 4th Feb 2010 18:02
Quote: "dont you have to setframe before you can incframe? I'm not good with those commands. I might also add a :shotdamage=1 command in there, because as it is, I don't see anything about shooting the door.

(although I could be wrong. I haven't used FPSC in months)"

Im not sure, im used to scripting in game maker, i just put stuff together till it works I changed the strenth in the properties but ill try it.

Quote: "Just change the condition in the real door script which makes it open (plrusingaction I think) and swap it with shotdamage=1 etc."

Thanks ill try it
Pandagamesorg
15
Years of Service
User Offline
Joined: 12th Dec 2009
Location: check your moms room :D
Posted: 25th Feb 2010 22:33
Or you could just right click the door in your level and then set strength to 1 if you want to door to break open.
Pandagamesorg
15
Years of Service
User Offline
Joined: 12th Dec 2009
Location: check your moms room :D
Posted: 25th Feb 2010 22:40
Try this (going off Marc)

Login to post a reply

Server time is: 2025-05-29 10:21:57
Your offset time is: 2025-05-29 10:21:57