Trigger and Script Question?
Posted: Thu Oct 16, 2003 2:41 pm
Hi all,
my english isn?t very good so i hope someone understands me.
I have a part of script which starts by a trigger in my map.
It is a multiple-trigger with the entity setthread OpenShutters.
The Sript part is this one :
OpenShutters:
$stall open $mg42_gunner
$stall delete
//$stall notsolid
$shutters_open show
$mg42 show
$mg42a show
//$mg42_gunner exec global/enable_ai.scr
$mg42_gunner show
end
The trigger and script work fine.
I want that the trigger will not be active when i walk trough,but
when i have entered a jeep an the jeep is driving through the trigger.
For the jeep i have this script:
jeep_enter:
$pilot lookat NULL
$jeep2 thread player_turret
$mission1_ende triggerable
wait 2
$jeep2 drive jeep2_path2 200 60 40 128
wait 2
thread lastsoldiers
$jeep2 waittill movedone
$jeep2 waittill movedone
$jeep2 waittill movedone
thread jeep_end
end
This script also work correct, but the problem is that the trigger gets active when i walk through befor i have entered the jeep.
Do i need an other Trigger for that, or can i activate the trigger in the jeep script, so that the "OpenShutters- scrpitpart" don?t start before when i walk trough?
Thx everybody for help!
Greetz Milles
my english isn?t very good so i hope someone understands me.
I have a part of script which starts by a trigger in my map.
It is a multiple-trigger with the entity setthread OpenShutters.
The Sript part is this one :
OpenShutters:
$stall open $mg42_gunner
$stall delete
//$stall notsolid
$shutters_open show
$mg42 show
$mg42a show
//$mg42_gunner exec global/enable_ai.scr
$mg42_gunner show
end
The trigger and script work fine.
I want that the trigger will not be active when i walk trough,but
when i have entered a jeep an the jeep is driving through the trigger.
For the jeep i have this script:
jeep_enter:
$pilot lookat NULL
$jeep2 thread player_turret
$mission1_ende triggerable
wait 2
$jeep2 drive jeep2_path2 200 60 40 128
wait 2
thread lastsoldiers
$jeep2 waittill movedone
$jeep2 waittill movedone
$jeep2 waittill movedone
thread jeep_end
end
This script also work correct, but the problem is that the trigger gets active when i walk through befor i have entered the jeep.
Do i need an other Trigger for that, or can i activate the trigger in the jeep script, so that the "OpenShutters- scrpitpart" don?t start before when i walk trough?
Thx everybody for help!
Greetz Milles