Page 1 of 1

Trigger my bazooka

Posted: Mon Mar 01, 2004 12:41 pm
by merlin
Is it possable for a vehicle to activate a trigger?,what i'd like to do is have my jeep drive along then go through a trigger which then gets a soldier to fire a bazooka at the jeep,i have tried various ways but i can not get it to work can anyone give me some help or even a prod in the right direction!cheers.

jeep

Posted: Mon Mar 01, 2004 1:11 pm
by tltrude
Does the jeep have a player in it? A trigger_multiple will detect a player. But, if there is no player, it will have to be scripted. One way would be to end the jeep's path at that point. Then have the jeep start a second path in the script, and also start the bazooka guy at the same time.

As long as the jeep contains a "friendly" the enemy AI should shoot at it. Just adjust his sight and hearing (I think it is key I) so he shoots when you want him to.

Posted: Wed Mar 03, 2004 12:15 am
by omniscient
you could do
if ($tank istouching $location){
// ai movement
end
}

Re: jeep

Posted: Thu Mar 04, 2004 3:04 am
by dcoshea
tltrude wrote:Does the jeep have a player in it? A trigger_multiple will detect a player. But, if there is no player, it will have to be scripted.
Does a trigger_vehicle not work? I admit that I don't know if it's available in AA, but it's shown in the Spearhead documentation.

Regards,
David