There is an easier way.......
Ok, open up the MAIN script of the entity to be destroyed by a switch. (You'll find it in C:\Program Files\The Game Creators\FPS Creator\Files\Scriptbank.)
Now, just after the first colon (
on every single line, add this:
activated=0
Ok, now add a line at the bottom of the script:
:activated=1:destroy
(The first colon translates as IF, the second translates as "THEN DO" and commas translate as AND.) So you build a script like:
if activated=1 then destroy
And translate to:
:activated=1:destroy.
Ok, now save that, and place your entity in the level, making sure his main script is the one you just edited, and that its name (the box at the top) is destroyswitch.
Ok, now add a switch (any switch) from the wall furniture set.
Place it in the level and right click.
Change the If Used field from what is already there (It will be Light or Remote Door) to the name of your entity (If you followed the tutorial right, this should be "destroyswitch")
Test the level.
Look at the entity.
Press the switch.
Boom! It died.
I hope that helped.... I haven't had time to test this yet, but there is no reason why it shouldn't work.
E.D.