buttom that...

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
bakka
Corporal
Posts: 32
Joined: Wed Jan 11, 2006 5:13 pm

buttom that...

Post by bakka »

i need a buttom which can be activated only by the allies and remove some axis's spawn and replace them whit allies's spawn and also switch on some light

the axis can deactivate it and than they get back their spawn and remove the allies's and also switch off the lights

is it possible ? sry but i'm noob for scripting.
Wierdo
Corporal
Posts: 47
Joined: Wed Jan 09, 2008 11:15 pm
Location: Winfield, KS

spawnpoints that go on and off

Post by Wierdo »

This is very possible, If you don't mind materials appearing where those spawnpoints are.
  • 1.) Make a trigger that the allies can use.
    2.) Make a func/door that is as big as the spawnpoint and texture it as glass. This is invisable.
    3.) Make the door go up and start underground in order to block the spawn at a later time.
    4.) Give the door a targetname like "spawnblocker1" and target it with the trigger use.
Make sure there are at least 2 spawnpoints that are always unblocked for each side. If you do not leave 2 unblocked, a player will spawn inside a column of glass and cannot even commit suicide to try and escape.

There is another method you can use, but it is more permenant. You can have it scripted with:

Code: Select all

$spawnblocker1 remove
If you use this, it will dissappear forever, and I do not know the code for "unremoving" things. The benefit though is that there wont be a column of glass somewhere in your map.
Post Reply