Post your scripting questions / solutions here
Moderator: Moderators
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Wed Aug 31, 2005 4:38 pm
can you tell me which "end"?
Code: Select all
level waittill prespawn
//Crazy room
local.fire = spawn script_model
local.fire model "static/fire.tik"
local.fire.origin = ( -990 -3010 -57 )
local.fire.angles = ( 0 0 0 )
local.fire.scale = 1.0
local.fire notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2015 -3070 0 )
local.splight.angles = ( -45 -45 -80 )
local.splight light 9 9 9 100
local.splight notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2220 -3070 0 )
local.splight.angles = ( 225 45 10 )
local.splight light 9 9 9 100
local.splight notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2015 -3020 0 )
local.splight.angles = ( 225 45 10 )
local.splight light 9 9 9 100
local.splight notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2220 -3000 0 )
local.splight.angles = ( 225 45 10 )
local.splight light 9 9 9 100
local.splight notsolid
local.light = spawn script_object
local.light model "static/indycrate.tik"
local.light.origin = ( -2117 -2950 -57 )
local.light.angles = ( 0 0 0 )
local.light light 9 9 9 300
local.light hide
local.light notsolid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2200 -2890 -145 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2125 -2890 -145 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2050 -2890 -145 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2200 -2890 -100 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2125 -2890 -100 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2050 -2890 -100 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2200 -2890 -45 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2125 -2890 -45 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2050 -2890 -45 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
//Normale Objects
//Allied call
local.switch = spawn script_model
local.switch model "static/worktable.tik"
local.switch.origin = ( -1605 -3065 -20 )
local.switch.angles = ( 0 0 0 )
local.switch solid
local.switch = spawn script_model
local.switch model "miscobj/radio_military.tik"
local.switch.origin = ( -1600 -3050 33 )
local.switch.angles = ( 0 235 0 )
local.switch solid
local.phone = spawn script_model
local.phone model "miscobj/phone_squarebase.tik"
local.phone.origin = ( -1600 -3065 33 )
local.phone.angles = ( 0 180 0 )
local.phone solid
local.switch = spawn script_model
local.switch model "static/bottle_small.tik"
local.switch.origin = ( -1620 -3055 33 )
local.switch.angles = ( 0 -60 0 )
local.switch solid
//Triggers
local.trig = spawn trigger_multiple
local.trig.origin = ( -990 -3010 -57 )
local.trig setsize ( -10 -10 -10 ) ( 10 10 10 )
local.trig setthread Peace_room
local.trig message "***!You are now in CRAZY PEACE ROOM for 30 seconds!***"
local.trig wait 0
local.trig delay 0
local.trigger = spawn trigger_use
local.trigger.origin = ( -1630 -3050 33 )
local.trigger setsize ( -5 -5 -5 ) ( 0 0 0 )
local.trigger setthread Allied_call
local.trigger wait 0
local.trigger delay 0
//Trigger places
Peace_room:
self waittill trigger
local.player=parm.other
if (local.player.isTrigger1==1)
end
local.player = parm.other
local.player tele ( -2120 -3005 -120 )
local.player angle -90
local.player takeall
wait 30
local.player respawn
end
Allied_call:
$trigger waittill trigger // when u hit 'use'at the trigger, the script will start
$trigger playsound Allied_call // the speaker will play the sound, "alarm" is the link to local.master aliascache (see above)
Iprintlnbold "The Allies have called an airstrike!!!"
wait 120
thread alarmtrigger
end
end
//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock
level waittill spawn
wait 1
$phone_speaker loopsound telephone
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Sat Sep 03, 2005 8:22 am
Someone, anyone....
GiffE1118
Warrant Officer
Posts: 137 Joined: Fri Aug 05, 2005 12:14 am
Contact:
Post
by GiffE1118 » Sat Sep 03, 2005 12:33 pm
you have ur threads in the wrong place
try
Code: Select all
level waittill prespawn
//Crazy room
local.fire = spawn script_model
local.fire model "static/fire.tik"
local.fire.origin = ( -990 -3010 -57 )
local.fire.angles = ( 0 0 0 )
local.fire.scale = 1.0
local.fire notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2015 -3070 0 )
local.splight.angles = ( -45 -45 -80 )
local.splight light 9 9 9 100
local.splight notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2220 -3070 0 )
local.splight.angles = ( 225 45 10 )
local.splight light 9 9 9 100
local.splight notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2015 -3020 0 )
local.splight.angles = ( 225 45 10 )
local.splight light 9 9 9 100
local.splight notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2220 -3000 0 )
local.splight.angles = ( 225 45 10 )
local.splight light 9 9 9 100
local.splight notsolid
local.light = spawn script_object
local.light model "static/indycrate.tik"
local.light.origin = ( -2117 -2950 -57 )
local.light.angles = ( 0 0 0 )
local.light light 9 9 9 300
local.light hide
local.light notsolid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2200 -2890 -145 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2125 -2890 -145 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2050 -2890 -145 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2200 -2890 -100 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2125 -2890 -100 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2050 -2890 -100 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2200 -2890 -45 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2125 -2890 -45 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2050 -2890 -45 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
//Normale Objects
//Allied call
local.switch = spawn script_model
local.switch model "static/worktable.tik"
local.switch.origin = ( -1605 -3065 -20 )
local.switch.angles = ( 0 0 0 )
local.switch solid
local.switch = spawn script_model
local.switch model "miscobj/radio_military.tik"
local.switch.origin = ( -1600 -3050 33 )
local.switch.angles = ( 0 235 0 )
local.switch solid
local.phone = spawn script_model
local.phone model "miscobj/phone_squarebase.tik"
local.phone.origin = ( -1600 -3065 33 )
local.phone.angles = ( 0 180 0 )
local.phone solid
local.switch = spawn script_model
local.switch model "static/bottle_small.tik"
local.switch.origin = ( -1620 -3055 33 )
local.switch.angles = ( 0 -60 0 )
local.switch solid
//Triggers
local.trig = spawn trigger_multiple
local.trig.origin = ( -990 -3010 -57 )
local.trig setsize ( -10 -10 -10 ) ( 10 10 10 )
local.trig setthread Peace_room
local.trig message "***!You are now in CRAZY PEACE ROOM for 30 seconds!***"
local.trig wait 0
local.trig delay 0
local.trigger = spawn trigger_use
local.trigger.origin = ( -1630 -3050 33 )
local.trigger setsize ( -5 -5 -5 ) ( 0 0 0 )
local.trigger setthread Allied_call
local.trigger wait 0
local.trigger delay 0
//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock
level waittill spawn
thread loophere
end
//ive had problems looping sounds and stuff out of waittill spawn
loophere:
wait 1
$phone_speaker loopsound telephone
end
//Trigger places
Peace_room:
self waittill trigger
local.player=parm.other
if (local.player.isTrigger1==1)
end
local.player = parm.other
local.player tele ( -2120 -3005 -120 )
local.player angle -90
local.player takeall
wait 30
local.player respawn
end
Allied_call:
$trigger waittill trigger // when u hit 'use'at the trigger, the script will start
$trigger playsound Allied_call // the speaker will play the sound, "alarm" is the link to local.master aliascache (see above)
Iprintlnbold "The Allies have called an airstrike!!!"
wait 120
thread alarmtrigger
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
wait i did is take ur threads out from wait till prespawn. u CANT have an end in there or else the rest of the mapscript does not load
hope that helps
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Sat Sep 03, 2005 7:01 pm
sorry but its still the same....
but the map self does doing it, only the sounds are not working..
GiffE1118
Warrant Officer
Posts: 137 Joined: Fri Aug 05, 2005 12:14 am
Contact:
Post
by GiffE1118 » Sun Sep 04, 2005 12:01 am
thats because u need to cache the sound
Code: Select all
//*** Sounds
local.master = spawn scriptmaster
local.master aliascache mysound URSOUND PATH LOCATION soundparms 1.5 0.0 1.0 0.0 800 3000 auto loaded maps "dm obj URMAPNAME"
edit that and put it above level wait till prespawn
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Sun Sep 04, 2005 12:54 pm
I did do that, but still won't work.....
Code: Select all
// Modified by: bartjerambo
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" "Modified by:"
setcvar "g_obj_axistext3" " Bartjerambo"
setcvar "g_scoreboardpic" "none"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
//*** Sounds
local.master= spawn ScriptMaster
local.master aliascache telephone sound/mechanics/Mec_PhoneRing_01.wav soundparms 1.0 0.0 1.0 0.0 200 1200 auto loaded maps "m dm moh obj "
local.master aliascache alarm sound/mechanics/Mec_Alarm_10.wav soundparms 1.2 0.0 1.0 0.0 300 12000 item streamed maps "m6l3a obj dm"
level waittill prespawn
//Crazy room
local.fire = spawn script_model
local.fire model "static/fire.tik"
local.fire.origin = ( -990 -3010 -57 )
local.fire.angles = ( 0 0 0 )
local.fire.scale = 1.0
local.fire notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2015 -3070 0 )
local.splight.angles = ( -45 -45 -80 )
local.splight light 9 9 9 100
local.splight notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2220 -3070 0 )
local.splight.angles = ( 225 45 10 )
local.splight light 9 9 9 100
local.splight notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2015 -3020 0 )
local.splight.angles = ( 225 45 10 )
local.splight light 9 9 9 100
local.splight notsolid
local.splight = spawn script_object
local.splight model "miscobj/searchlight.tik"
local.splight.origin = ( -2220 -3000 0 )
local.splight.angles = ( 225 45 10 )
local.splight light 9 9 9 100
local.splight notsolid
local.light = spawn script_object
local.light model "static/indycrate.tik"
local.light.origin = ( -2117 -2950 -57 )
local.light.angles = ( 0 0 0 )
local.light light 9 9 9 300
local.light hide
local.light notsolid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2200 -2890 -145 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2125 -2890 -145 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2050 -2890 -145 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2200 -2890 -100 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2125 -2890 -100 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2050 -2890 -100 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2200 -2890 -45 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2125 -2890 -45 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
local.sandbank = spawn script_object
local.sandbank model "static/sandbag_link_main.tik"
local.sandbank.origin = ( -2050 -2890 -45 )
local.sandbank.angles = ( 0 90 0 )
local.sandbank hide
local.sandbank solid
//Normale Objects
//Allied call
local.table = spawn script_model
local.table model "static/worktable.tik"
local.table.origin = ( -1605 -3065 -20 )
local.table.angles = ( 0 0 0 )
local.table solid
local.radio = spawn script_model
local.radio model "miscobj/radio_military.tik"
local.radio.origin = ( -1615 -3050 28 )
local.radio.angles = ( 0 235 0 )
local.radio solid
local.Pradio = spawn script_model
local.Pradio model "animate/pulse_military_radio.tik"
local.Pradio.origin = ( -1615 -3050 28 )
local.Pradio.angles = ( 0 235 0 )
local.Pradio solid
local.Pradio targetname Pradio
local.phone = spawn script_model
local.phone model "miscobj/phone_squarebase.tik"
local.phone.origin = ( -1600 -3075 28 )
local.phone.angles = ( 0 180 0 )
local.phone solid
//Triggers
local.trigCR = spawn trigger_multiple
local.trigCR.origin = ( -990 -3010 -57 )
local.trigCR setsize ( -10 -10 -10 ) ( 10 10 10 )
local.trigCR setthread Peace_room
local.trigCR message "***!You are now in CRAZY PEACE ROOM for 30 seconds!***"
local.trigCR wait 0
local.trigCR delay 0
local.trigAC = spawn trigger_use
local.trigAC.origin = ( -1630 -3050 33 )
local.trigAC setsize ( -5 -5 -5 ) ( 0 0 0 )
local.trigAC message "You have called for an airstrike!!!"
local.trigAC setthread Allied_call
local.trigAC wait .3
local.trigAC delay 0
//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock
level waittill spawn
thread loophere
end
//ive had problems looping sounds and stuff out of waittill spawn
loophere:
wait 1
$phone loopsound telephone
end
//Trigger places
Peace_room:
self waittill trigger
local.player=parm.other
if (local.player.isTrigger1==1)
end
local.player = parm.other
local.player tele ( -2120 -3005 -120 )
local.player angle -90
local.player takeall
wait 30
local.player respawn
end
Allied_call:
$trigger waittill trigger // when u hit 'use'at the trigger, the script will start
$Pradio hide
$trigger playsound alarm // the speaker will play the sound, "alarm" is the link to local.master aliascache (see above)
Iprintlnbold "The Allies have called an airstrike!!!"
wait 120
thread alarmtrigger
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
and...
thread loophere
end
//ive had problems looping sounds and stuff out of waittill spawn
loophere:
wait 1
$phone loopsound telephone
end
what kind of problems....
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Sun Sep 04, 2005 8:20 pm
oh he is doing it now, but if i trun than the sound goes hard, and if i turn futher than its the volume = 0... i want that the volume allways is hard....
(i'm sorry for my bad english...
)
GiffE1118
Warrant Officer
Posts: 137 Joined: Fri Aug 05, 2005 12:14 am
Contact:
Post
by GiffE1118 » Mon Sep 05, 2005 3:03 am
well it wouldnt ever loop when i try to loop it before waittill spawn.
by adding the wait then it starts to play actually. so maybe it need that additional second of wait (just to get everything in order)
do a search for allias cache you will find the answer to the volume problem in there somewhere. i dont know it off the top of my head. just a gerneral sense of what is average.
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Mon Sep 05, 2005 6:42 am
i mean the alarm, its going loud or silends if i turn....
(isn't it that i had mohaa installed on a surround system???)
GiffE1118
Warrant Officer
Posts: 137 Joined: Fri Aug 05, 2005 12:14 am
Contact:
Post
by GiffE1118 » Mon Sep 05, 2005 3:24 pm
oh no its all relative to ur location.
if u want it surround sound spawn a couple script_object around the room (with targetnames) and then add $[targetname] loopsound ursound to the thread u are looping the other thing
eg.
Code: Select all
local.speaker = spawn script_object "targetname" "speaker1" "origin" "0 0 0"
loophere:
wait 1
$speaker1 loopsound telephone
typed in here mind the errors if there are some
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Tue Sep 06, 2005 11:50 am
ok, thanks GiffE the sounds are doing it great...
i had another questions...
Is it possible that if someone joint my server than he is german but only if you had "blabla" for your name than they can be allied...
GiffE1118
Warrant Officer
Posts: 137 Joined: Fri Aug 05, 2005 12:14 am
Contact:
Post
by GiffE1118 » Wed Sep 07, 2005 7:32 pm
Bartjerambo wrote: ok, thanks GiffE the sounds are doing it great...
i had another few questions...
1. Is it possible that if someone joint my server than he is german but only if you had "blabla" for your name than they can be allied...
and
2. can someone make a small script for me only about a switch that can turnon and -off, its because i wanna learn how i must do that (i want the script with waittills (example: waittill prespawn))
the name thing could be done but i think it would be hard. you would have to use elgans strings.scr and convert his name to strings. so thats kinda outa my league.
but i can help with the swtich thing but i need to know what to make it do
all it really is, is a trigger_use at the same location as the spawned switch then in the setthread make it animate
heres an example
Code: Select all
local.launcher = spawn trigger_use
local.launcher.origin = ( 5 -32 64 ) // ??SET UR COORDS
local.launcher setsize ( -80 -80 -20 ) ( 80 80 50 )
local.launcher setthread flip_switch
local.switch = spawn script_model
local.switch model "static/alarmswitch.tik"
local.switch.origin = ( 5 -32 94 )
local.switch.angles = ( 0 0 0 )
local.switch solid
local.switch targetname switch
swtich:
$switch anim "THE SWITCH Anim"
i dont know what the anim is look through the liberation mod it has it in there
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Thu Sep 08, 2005 12:54 pm
I already had a alarm script from TMT forum....
but can you please help with allied script...
ViPER
General
Posts: 1058 Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:
Post
by ViPER » Thu Sep 08, 2005 4:50 pm
you can script it too.
Code: Select all
//Add speaker
spawn script_models "model" "fx/dummy.tik" "targetname" "speaker"
$speaker.origin = ( 0 0 0)
$speaker notsolid
Barttje
Sergeant Major
Posts: 111 Joined: Sat Aug 20, 2005 8:52 pm
Post
by Barttje » Thu Sep 08, 2005 6:48 pm
i mean that if someone had "blabla" for there name, they could be allied.
else they must be axis