Page 1 of 1
2 questions
Posted: Tue May 04, 2004 6:12 pm
by dr shenker
question one:
i still have a complieing problem here is is a screenshot of the error
firts line:
[img]http://users.pandora.be/verkennersengsbergen/`fout.JPG[/img]
question 2:
how do i make a door that i can lock/unlock on a different spot,
i know that it has something to do whit targets, but that's all

sticky
Posted: Tue May 04, 2004 6:23 pm
by tltrude
There is a thread for compile errors at the top of the forum--look for "MAX_SURFACE_INFO" there.
For the door, give it a targetname like "door1" and set the "TARGETED" spawnflag (little check box). Then make a trigger_use and give it this key/value.
Key: target
Value: door1
Posted: Tue May 04, 2004 9:35 pm
by blue60007
Do check out the sticky (remove all custom pk3's).
if you want to unlock/lock within the script you can targetname the door $door and then in script you could do:
to lock the door and then
to unlock the door.
Posted: Wed May 05, 2004 10:56 am
by dr shenker
blue60007 wrote:Do check out the sticky (remove all custom pk3's).
if you want to unlock/lock within the script you can targetname the door $door and then in script you could do:
to lock the door and then
to unlock the door.
where should i wright this??
Posted: Wed May 05, 2004 3:49 pm
by lizardkid
okay, you wil have a 'main' script that does all the starting level stuff like gets all the other non-you-wrote scripts together and gets them going and you'll have your other littler threads in that script that carry out the specific functions of your level, such as locking and unlocking a door. soooo....
main:
exec global/ai.scr
exec global/loadout.scr maps/test_mymap.scr
exec global/minefield.scr
exec global/weather.scr
level waittill prespawn
exec global/ambient.scr test_mymap
level waittill spawn
level.script = "maps/test_bcda1.scr"
thread mythread
end
mythread:
$door lock
wait 5
$door unlock
end
would lock the door as soon as the comp got to that thread and would unlock it after 5 seconds.
that whole first part until the first end was the 'main' thingy i was talking about that dealt with collecting the other scripts, such as ai.scr
it calls mythread (a thread separate from the first) at the end and it executes whatever mythread tells it to. then it'll go back and stop. your script is done!
for more details and stuff on scripting check out the tuts here at .map, they have tons of scripting in them and can tell you better than me how to.