Home   Help Search Login Register  

Author Topic: Help with a truck.. reinfoceing base 1 or 2 if 2 or 1 is attacked.  (Read 516 times)

0 Members and 2 Guests are viewing this topic.

Sphinx

  • Guest
I need to make it when base 1 is attacked.... a truck will drive a group to base 2 to be reinforced... but if base 2 is attacked they will drive to base 1... this is a mp mission..

thanks..  :P

Sphinx

  • Guest
bump

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
i think dat u cud do it w/ simple 2 detection trigers (so da comp know were its detected)

in deir activision put

[this,truckname] exec "rein.sqs"

da script : rein.sqs"

Code: [Select]
_pos = getpos (_this select 0)
_Veh = _this select 1

~2

_veh move getpos _pos
~5
@ unitready _veh
"unassignvehicle _X" foreach crew _veh
"[_X] ordergetin false" foreach crew _veh
"_X setcombatmode ""red""" foreach crew _veh
"_X setbehaviour ""combat""" foreach crew _veh
exit

just put da triger in da exact spot u want em 2 move 2

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

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Or if you want to use waypoints instead of scripts:

:note - in the example below i'm asuming that you're
using a group of 11 soldiers grouped to a truck and in
the special field of the soldiers: IN CARGO
If you want to have the group seperated from the truck,
the waypoints will be a little bit different, but in general
the 2 HOLD waypoints (wp1 and wp4) + the syncronizing would still remain the same way.
Also the example is built for WEST attacks one of the base
and EAST sends a truck with reinforcements.

You need to create 2 detection triggers as LCD already
mentioned:

Code: [Select]
triggerA: covers base1

activation: west detected by east

type: switch

condition: this


triggerB: covers base1

other settings make the same as for triggerA

Now you need your truck and it's waypoints

Code: [Select]

waypoint1:
type: HOLD

syncronize this waypoint with triggerA (F5 + drag a line)


waypoint2:
type: GETOUT
somewhere near base1 or in base1 (up to you)


waypoint3:
type: GUARD or HOLD where you want them to reinforce


waypoint4:
type: HOLD

syncronize this waypoint with triggerB

waypoint5:
type: GETOUT
somewhere near base2 or in base2 (up to you)


waypoint6:
type: GUARD or HOLD where you want them to reinforce

~S~ CD
« Last Edit: 27 Jun 2003, 10:34:11 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted