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 / Spawn entity using switch

Author
Message
Gun_Guy
17
Years of Service
User Offline
Joined: 11th Nov 2007
Location: UK
Posted: 4th Nov 2008 00:51
i know you can spawn with trigger zone but what about switch
and also how to make destroyable environment like break down walls, doors, entitys crash etc
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th Nov 2008 07:47
Find the Community guide and read the scripting tutorials. This type of thing is covered in the first and second tutorial referencing light switches... just relate that and imagine that instead of having the Light's "If Used" field set to the light, it's set to a spawnable entity.


Find out what script a triggerzone uses to spawn an entity and mold that (if necessary) into a switch script.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
Gun_Guy
17
Years of Service
User Offline
Joined: 11th Nov 2007
Location: UK
Posted: 4th Nov 2008 14:33
thanks i will have ago
i knew it was going to be u that replyed
Gun_Guy
17
Years of Service
User Offline
Joined: 11th Nov 2007
Location: UK
Posted: 4th Nov 2008 14:37
oh yeah another thing i forgot to add was that the entity keeps respawning everytime u push the switch
is that possible
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Nov 2008 03:34
Sadly, you cannot have a spawn point ONLY spawn a single item whenever it is activated. When you activate a spawning entity, it will start spawning and will not stop unless it has reached it's maximum amount of entity's to spawn.



The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
Gun_Guy
17
Years of Service
User Offline
Joined: 11th Nov 2007
Location: UK
Posted: 5th Nov 2008 11:56
ok i figured it out how to do the switch thing i was very happy for my self . what i did about the spawn more entitys was stick loads of boxes together. thanks for the help ply
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 5th Nov 2008 12:42
Gun_Guy,

I would have the character's settings set to spawn when used, then set the switch to activate the character's name. That should spawn the entity once the player activates the switch.

Tom

Login to post a reply

Server time is: 2024-11-24 13:53:23
Your offset time is: 2024-11-24 13:53:23