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 / Please help me with my third script!

Author
Message
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 16th Jul 2009 02:19 Edited at: 16th Jul 2009 02:20
Hi, well I just downloaded FPI Edit Pad, and I'm having a little trouble with my script. I'm trying to make it so that when you use a switch, it spawns an entity, and when you use it again, the entity disappears. (I'm not using any mods, just FPSC X9)



This is what I got so far. Thanks for your help!

If every millisecond in your life was 10 problems in the world, you'd be immortal
Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 16th Jul 2009 05:10
try putting 'ifused=destroy' in the entity that you just spawned. This might make it destroy itself.
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 16th Jul 2009 16:22
well, see, I can't even flick the switch, like when I use the light switch it doesn't move, nor does it spawn anything. Thanks 4 your help

If every millisecond in your life was 10 problems in the world, you'd be immortal
Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 16th Jul 2009 18:29
Is the switch set to dynamic or static? scripts dont work for dynamic objects, only static ones.
Kravenwolf
15
Years of Service
User Offline
Joined: 14th Apr 2009
Location: Silent Hill
Posted: 16th Jul 2009 18:57 Edited at: 16th Jul 2009 19:00
Quote: "Is the switch set to dynamic or static? scripts dont work for dynamic objects, only static ones. "


Umm...scripts don't work for static objects, only dynamic ones


Kravenwolf

Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 16th Jul 2009 22:15
Yeah.. I meant that. Was half asleep when writing however. =P
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 17th Jul 2009 03:24
uhhh, yeah they're static.

@Kravenwolf: your zombie swamp model pack looks awsome! Kepp going at it!

If every millisecond in your life was 10 problems in the world, you'd be immortal
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 18th Jul 2009 21:41
well, if they still don't work after their dynamic, try merging your script with the basic switch script, that usually works for me.

Coming soon: what lies beneath.
check out the official thread: http://forum.thegamecreators.com/?m=forum_view&t=153893&b=25
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 20th Jul 2009 15:35 Edited at: 21st Jul 2009 16:06
thanks, so the script itself is okay? I'll try your idea now

EDIT: It didn't work...

If every millisecond in your life was 10 problems in the world, you'd be immortal

Login to post a reply

Server time is: 2024-11-25 03:59:09
Your offset time is: 2024-11-25 03:59:09