Home   Help Search Login Register  

Author Topic: snipe driver....or look like it  (Read 759 times)

0 Members and 1 Guest are viewing this topic.

Offline Conflict109

  • Members
  • *
  • no worries
snipe driver....or look like it
« on: 01 Sep 2003, 21:22:21 »
ok heres what im trying to do, i have a Humvee driving down a road, and i want a sniper to fire and hit the driver(stopping the vehicle) is there a script out there or anyway to do it? as a second thought to that, is there a way to simulate it where u have only the driver/pilot die, and lose control?

Thanks,
C109
Hey!! Bring back my pants you friggin elves!

Offline rhysduk

  • Former Staff
  • ****
Re:snipe driver....or look like it
« Reply #1 on: 01 Sep 2003, 23:10:36 »
Good evening C109 ;D Pleased to meet you ;D

This is what i would do - if it dont work let me know and ill try soemthign else ;D

1. - Name the sniper and the player with two different name tags (obviously)
      EG - Sniper = sniper1
              Driver = driver1


Me rabbit could do this ;D

2. - Either in a script or a trigger or a waypoint put this into the ON ACTIVATION feild of one of the three

sniper1 dofire driver1

3. Hit preview and see what happens ;D

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

fragsta

  • Guest
Re:snipe driver....or look like it
« Reply #2 on: 01 Sep 2003, 23:29:21 »
First off it cant be a humvee they have bullet proof windows, unless u do this:

Code: [Select]
snipekillhummerdriver.sqs
_sniper = this select 0
_driver = this select 1

_sniper dofire _driver

_sniper addeventhandler["Fired","_driver setdammage 1.0"]

end

then create a mission with an empty humvee and name it "car1". Create a west soldier called "driver1". Then create a sniper called "sniper1". put "[sniper1,driver1] exec "snipekillhummerdrive.sqs" in the init field of any of the units.

--------------------------------------

Or, you could do this: create the units and the waypoint again but without the script, and type in the init of a game logic:

Code: [Select]
sniper1 addeventhandler["Fired","driver1 setdammage 1.0"]


by the way i have no assurance that this will work i havent tried it out yet
« Last Edit: 01 Sep 2003, 23:30:28 by fragsta »

Offline rhysduk

  • Former Staff
  • ****
Re:snipe driver....or look like it
« Reply #3 on: 02 Sep 2003, 17:23:32 »
Bullet proof windows u say ???

 :o Cool
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline Conflict109

  • Members
  • *
  • no worries
ok....2nd question
« Reply #4 on: 02 Sep 2003, 21:39:17 »
ok thanks for the help, i had tried the name of the player dorire commands, and im not only using humvees(i noticed the bulletproof thing too), unfortunately the sniper tends to target the actual car, not the driver, no matter what they drive, what im really trying to do is put together a mission where a sniper takes out the driver of your car in an ambush style attack, so i need to either kill the driver or, disable the vehicle, so im stopped in the area, i was also wondering if u can lock doors in cars so the soldiers cant get out, something like a capture ina cutscene....is it possible or not?

Thanks again
C109
Hey!! Bring back my pants you friggin elves!

Drozdov

  • Guest
Re:snipe driver....or look like it
« Reply #5 on: 02 Sep 2003, 21:58:39 »
Try this...

vehiclename lock true

It should work but I wouldn't bet my life on it.

fragsta

  • Guest
Re:snipe driver....or look like it
« Reply #6 on: 02 Sep 2003, 22:06:11 »
C109 I have made the mission and its works ok so that when the sniper fires the driver dies no matter where he is firing, which in my opinion would be ok. And the driver is the car when he is inside it, in a way. When someone sees a car in OFP they dont say Driver 4 o'clock, 200, do they? i think it will b ok.
Drozdov i'm not sure but i think that only locks it from the outside, try just not tellin them 2 get out no matter what. Stop them from wanting to get out.

Offline rhysduk

  • Former Staff
  • ****
Re:snipe driver....or look like it
« Reply #7 on: 02 Sep 2003, 22:10:38 »
C109,

to kill the driver type this in the ON ACTIVATION feild of a Wp or a TRIGGER -

driver1 setDammage

This will kill the driver of the HUMVEE instantly,


Maybe you could use a script that on the first shot that the sniper takes teh driver dies instantly - let me know what u try..

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

KyleSarnik

  • Guest
Re:snipe driver....or look like it
« Reply #8 on: 03 Sep 2003, 04:05:45 »
vehiclename lock true --- locks vehicle. Units can not get in OR out.

To unlock it again put false instead of true... duh... ::)

fragsta

  • Guest
Re:snipe driver....or look like it
« Reply #9 on: 03 Sep 2003, 18:48:12 »
C109,

to kill the driver type this in the ON ACTIVATION feild of a Wp or a TRIGGER -

driver1 setDammage

This will kill the driver of the HUMVEE instantly,


Maybe you could use a script that on the first shot that the sniper takes teh driver dies instantly - let me know what u try..

Rhys


look at my first post. seriously it works i will make a mission of it if it dont work 4 u

Offline rhysduk

  • Former Staff
  • ****
Re:snipe driver....or look like it
« Reply #10 on: 04 Sep 2003, 00:06:09 »
Did i say it was wrong ??
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)