-
Notifications
You must be signed in to change notification settings - Fork 17
taxi triggers
James edited this page Oct 28, 2017
·
1 revision
on(Call Taxi) {
if(nearest prop to PC:0 tagged "Taxi Stop") is "Taxi Region 1" {
move prop tagged "Taxi South" to the location of prop "Parking Spot";
move prop tagged "Taxi East" to the location of prop "Taxi Stop 1";
throw "Car East Move"
}
}
on(Car East Move) {
if(g:Taxi_Z_Movement < 30) {
move_prop "Taxi East" to location of "Taxi East" offset by (0,0,0.18)
move_region "Car Collision East" to location of "Taxi East" offset by (0,0,3)
g:Taxi_Z_Movement += 0.18
delay_throw("Car East Move", 0.01s)
} else {
g:Taxi_Z_Movement = 0
camera_focus("Taxi East", 3s)
}
}
on(Taxi Check) {
if(nearest prop to PC:0 tagged "TaxiStop") is "Taxi Region 1" {
teleport all actors on team Shadowrunners to location_actor("Frosty")
camera_focus(prop("Taxi East", 3s)
throw(Car East Move)
Fade_Camera(5s, 0s)
throw("Taxi Leave") after 4s
}
}
on(Taxi Leave) {
if(g:Taxi_Destination == "Downtown") {
open_scene("puyullup barrens")
}
}
on(Call Taxi) {
if(nearest prop to PC:0 tagged "Taxi Stop") is "Taxi Region 1" and (nearest prop to PC:0 tagged "Taxi Stop") matches tag_pattern("east") {
move prop tagged "Taxi South" to the location of prop "Parking Spot";
move prop tagged "Taxi East" to the location of prop_tagged "Taxi Stop" offset by (-30,0);
throw "Car East Move"
}
}