Home   Help Search Login Register  

Author Topic: How do I make people jump out of their vehicles to attack?  (Read 791 times)

0 Members and 1 Guest are viewing this topic.

gothicv

  • Guest
Say in my mission, I have some dudes patrolling thru a town in a UAZ, how would I make them jump out and slaughter the enemy when they saw him??

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:How do I make people jump out of their vehicles to attack?
« Reply #1 on: 06 Jun 2003, 01:19:00 »
make detection triger ;) name it (in da name field - not da text field) - make da trig bout 50-50 size nd put in it UAZ_DETECT = true

now make da next script

Code: [Select]
_trig = _this select 0
_UAZ = _this select 1
#loop
_trig setpos getpos _UAZ
~1
? UAZ_DETECT : goto "engage"
goto "loop"

#engage
_ppl = crew _UAZ
"unassignvehicle _X" foreach _ppl
"[_X] order getin false" foreach _ppl
"_X setcombatmode {red}" foreach _ppl
"_X setbehaviour {danger}" foreach _ppl
@ "_X in _UAZ" count _ppl < 1
~1
"_X reveal (_trig select 0)" foreach _ppl
exit

exec it

[nameoftriger,nameofUAZ] exec "scriptname.sqs"

i didnt check it but it shud work - plzreport ny erors

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

_Ross_

  • Guest
Re:How do I make people jump out of their vehicles to attack?
« Reply #2 on: 06 Jun 2003, 01:48:05 »
set a moving trigger over the unit, and set the trigger to activate if you detect the enemy, write the script 'unitname' leavevehicle 'vehiclename';
unitname setbehaviour "combat"

if ur attacking, simply give them a transport unload waypoint

to go more in depth, out all the units in the back of the vehicle in a group, and give the leader a seek and destroy waypoint. in all of the sodiers initilizations, write:
'soldiername' moveincargo 'vehiclename'

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:How do I make people jump out of their vehicles to attack?
« Reply #3 on: 06 Jun 2003, 01:50:51 »
as far as i remember i'm pretty sure that if an enemy is detected then the soliders disembark at their own accord?

maybe its happened... im mad... ofp has fried my brain  ::)
Proud Member of the Volunteer Commando Battalion

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:How do I make people jump out of their vehicles to attack?
« Reply #4 on: 06 Jun 2003, 02:02:01 »
@ mezzy - it hapens somtimes - not realy relaible

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

gothicv

  • Guest
Re:How do I make people jump out of their vehicles to attack?
« Reply #5 on: 06 Jun 2003, 03:11:04 »
woah - a moving trigger? Explain please!

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:How do I make people jump out of their vehicles to attack?
« Reply #6 on: 06 Jun 2003, 03:13:35 »
it moves w/ regular setpos command ;)

just exec da script ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta