OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Corrosion on 16 Oct 2003, 15:13:40
-
hi! first time here. hi!
i also have a problem with my mission. it takes place in a major town on nogova. a hostage situation.... a terrorist is pointing his gun at two hostages. what i want is that when the two GSG9 team members are detected by other terorists in the town, he has to shoot the hostages. i dont know what it is called, so i cant use the search function, although i have tried. can you help? :P
-
Should be something like "dude1 doFire dude2"
You might want to add the dotarget command, too, since it have shown to make the unit more acturate ;D
Good Luck
-
Another possibility. Name the two hostages, say loon1 and loon2. They should be side West. In the init field of each write:-
this setCaptive true
Now create a trigger, covering the area where you want the other terrorists to detect the rescue team:-
Activation box: West detected by East
On Activation: loon1 setCaptive false; loon2 setCaptive false
The terrorist guard will shoot both of them automatically.
-
WOW! thanks for the quick replies!!! great man! :D :D :D
-
ehhh. a little problem has occured. what do i do if the hostages are civies? the thing you posted works fine, but i need the hostages to be civies.
-
Doesn't MY method work ? ???
It should work if the units are civ, too... I think...
Another possibility is to make the civies West.. To do this, add a west soldier, rank colonel. Type in his init field "DeleteVehicle This"
Group the west soldier to the civy by draging a line (F2 must be selected) between them :)
Then you can use macgubas solution 8)
-
Have I seen this question a lot ;).
What you do is:
1: Create a West unit,
2: Using the 'F2 Group' Line (Press F2 :P), drag the civies to the West unit.
3: In the West Units' Init. field type: DeleteVehicle This
Now the civies will be considered West!
Hope I explained it well enough 8).
Beware the GrimMonkey
EDIT: Damn! Knut Erik beat me to it >:(
-
Knut Erik, I think your method would work. Mine was only an alternative.
As an additional point, I'd make the trigger type switch. Have the guard on a HOLD waypoint and synchro the trigger to the waypoint. The guard's next waypoint should be SEEK & DESTROY. Put it right next to the hostages. That way, if anything goes wrong with the commands, the guard is in the right place doing the right thing. You'll need to give him other waypoints after the S&K, (maybe CYCLE) otherwise he'll eventually just stand there.