Home   Help Search Login Register  

Author Topic: Bodies=Alarm script  (Read 687 times)

0 Members and 1 Guest are viewing this topic.

Milwot

  • Guest
Bodies=Alarm script
« on: 27 Apr 2004, 04:41:29 »
I'd like to know how to make a script where if a patrol should come across a body (or a dozen bodies) that they'll raise the alarm.

Also, how would you make a patrol in a car stop and get out if they come across the enemy?

Kammak

  • Guest
Re:Bodies=Alarm script
« Reply #1 on: 27 Apr 2004, 06:13:09 »
RE:Make car stop and get out if encounter enemy

doStop [vehiclename];unassignVehicle [unit] (or {unassignVehicle _x} foreach units group [unitname])

You could change behaviour, set combat mode, etc...if necessary as well.

How do you want to trigger it? If you know the group that will be encountered, you could setup a trigger that fires the above code with the condition:

[patrolname] knowsAbout [badguyname] > 0

Or you could use a large "West Detected by East" trigger, or do it more elaborately by a frequently polling script that checks if the patrol group knows about numerous bad guys, etc, or do a real simple:

[patrolname] distance [badguyname] < [somevalue in meters]

which would make them stop and get out if they get close the bad guys.


RE: Discovering bodies - there is an outstanding script in the Script Library that deals with just that topic - I *believe* its by Snyper, but I may be mistaken.  Try searching on "hide body" or something along those lines.

Kammak

  • Guest
Re:Bodies=Alarm script
« Reply #2 on: 27 Apr 2004, 06:15:39 »
The script example I mentioned is titled

"How to determine if a body is hidden"

by Snyper.  Check it out, with a little tweaking it could would for numerous patrols/guards.  And it rewards guys that take the time to use the "Hide Body" action.