2 questions

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
dr shenker
Sergeant
Posts: 65
Joined: Mon Jan 26, 2004 7:23 pm
Contact:

2 questions

Post 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 :?
-^IW^-dr shenker
The Real DM==>released@
http://www.project-engsbergs.tk
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

sticky

Post 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
Tom Trude,

Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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:

Code: Select all

$door lock
to lock the door and then

Code: Select all

$door unlock
to unlock the door.
Image
dr shenker
Sergeant
Posts: 65
Joined: Mon Jan 26, 2004 7:23 pm
Contact:

Post 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:

Code: Select all

$door lock
to lock the door and then

Code: Select all

$door unlock
to unlock the door.
where should i wright this??
-^IW^-dr shenker
The Real DM==>released@
http://www.project-engsbergs.tk
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply