TOW Map Door/Switch/Trigger Issue

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Slyk
Lieutenant Colonel
Posts: 361
Joined: Sun Jul 14, 2002 12:42 am
Location: Elizabethtown, PA

TOW Map Door/Switch/Trigger Issue

Post by Slyk »

OK, not sure too many of you have any ideas, but...... I've nearly completed my TOW map but having huge problems with one door. I have a switch that has a trigger that when thrown activates an objective complete but I can't get the DOOR that is the visual objective to OPEN or CLOSE.

So, here's a summary: Door starts OPEN, Allies need to close it, Axis to open it...

Door: $targetname assembly_door
Switch: $targetname assembly_switch
Trigger: $targetname assembly_trigger

Trigger and Switch activate OBJ just fine, prints 'objective complete' message and all.

I CAN get the door to open IF I target it from the trigger, but then IF the Allies close the door at round start, they can immediately 'use' the trigger again and open it but the switch remains in the up/open position. Vise-versa for the Axis. Any ideas on how I can get the door to close/open with the SWITCH being thrown?

I went over and over the 'Flughafen' script and it's hanger door threads, copied and edited but none seem to work. Sure to missing some little detail.

Help? Ideas?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It's obviously me but I honestly don't have a clue what you mean :(.
Image
Slyk
Lieutenant Colonel
Posts: 361
Joined: Sun Jul 14, 2002 12:42 am
Location: Elizabethtown, PA

Post by Slyk »

OK...sorry. I've got a switch set up, like in the Ardennes TOW and it's supposed to trigger a door to close/open depending on which team flips it. Now, I finally realized writing this that Ardennes has the same feature, so I'll look at that in a bit.

Anyway, my switch works as far as acting like a TOW objective, but it won't for ANYTHING trigger the door to open or close. I've gone through the 'g_allclasses' or whatever doc and tried a mess of commands, but no luck.

I can set the main switch trigger to move the door, but then it moves ANY time someone 'uses' the trigger, i.e. even if the Allies close the door and the switch flips up, the same allied guy can then immediately 'use' the trigger again, the switch won't move, but the door opens and eventhough the Allies maintain control of the OBJ, the door is now open.

Better????????? 'Cause JV, you're my best hope!
Slyk
Lieutenant Colonel
Posts: 361
Joined: Sun Jul 14, 2002 12:42 am
Location: Elizabethtown, PA

Post by Slyk »

PROGRESS. Not complete, but getting there. Finally tried using the 'trigger' command as in

'$entityname_trigger trigger entityname'

that got the door moving when the switch was thrown, now to work out the angles of the door so it works properly. Whew! MAYBE I will get to release the TOW version of Tractor Works in the coming week......we'll see. Always takes longer than I expect!
Post Reply