Trigger my bazooka

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
merlin
Corporal
Posts: 47
Joined: Tue Jan 13, 2004 11:22 am
Location: essex (uk)
Contact:

Trigger my bazooka

Post 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.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

jeep

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

Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

you could do
if ($tank istouching $location){
// ai movement
end
}
Image
dcoshea
Colour Sergeant
Posts: 94
Joined: Thu Mar 04, 2004 3:00 am
Location: Sydney, Australia
Contact:

Re: jeep

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