OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Anton VonE on 19 Apr 2003, 16:29:41

Title: Dangerous Driving
Post by: Anton VonE on 19 Apr 2003, 16:29:41
Can you make an enemy AI get into a vehicle and attemp to run players and other AI over? Is this possible? I'd like it for a mission I'm making...I'd like to thank you in advance for a reply.

Anton
Title: Re:Dangerous Driving
Post by: macguba on 19 Apr 2003, 18:03:11
I suppose you could just use doMove commands

MadLorryDriver doMove getPos InnocentVictim1

You might need to give commands (doMove or doStop) to the victims to stop them from running away.   You also might need to put

this addrating 10000

in the init field of the driver to stop people shooting at him.
Title: Re:Dangerous Driving
Post by: Anton VonE on 19 Apr 2003, 18:07:09
Do you think that dotarget would work? I mean, he would be in the drivers position, so I'm not sure if that command only applies to gunners. I'd need the driver to target actual players too, so dostop might not exactly work.

 :) Thanks for replying so quickly, Macguba
Title: Re:Dangerous Driving
Post by: macguba on 19 Apr 2003, 18:10:13
I have no idea, why don't you try it.  ;)    Doubt it though.

If you want to cheat so that the players get run over, try disableUserInput if the vehicle gets close enough to them.

PS - my pleasure :)