OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Yippyfn on 10 Feb 2004, 01:42:22
-
Can anyone recommend a good way to arrest someone in OFP? I'm trying to make a mission that involves detaining someone.
-
I made a Nam mission which uses some quite nice scripts to arrest someone: It is in the Beta area.
http://www.ofpec.com/yabbse/index.php?board=23;action=display;threadid=12441 (http://www.ofpec.com/yabbse/index.php?board=23;action=display;threadid=12441)
If you want to have those scripts i can share with you.
Greetings
Kuro
-
the base of it:
Commands for arrest 'dude'
dude setCaptive true
removeAllWeapons dude
[dude] join yourgroupname
You have to create conditions, in what kind of situation you want to arrest him...
-
Do I need to have the SEB Nam pack to use your scripts, Kuro?
-
Scripts never need addons, except when they create something. You only need SEB NP 2 for playing the mission.
:beat: *Gets Shot* :beat:
-
Ok then, could you tell me how to use it? It sounds great.
-
Hello,
sorry the scripts are not optimized yet. Therefore it is a little bit inconvient to use them, but it is possible.
First:
add to your INIT.SYS the Lines:
VICTIMS = [Gangster1,Gangser2]
PRISONERS = []
VICTIMS should contain the names of all people which can be arrested. PRISONERS will contain the names of all people you have arrested (of course empty at the beginning). Gangster1 and Gangster2 are only examples.
SECOND:
Copy Capture.sqs, Captive.sqs and Brave.sqs from the attached zip File in your mission folder.
THIRD:
Add a unit called "corpsman" to your mission. All arrested units will join this unit after being arresting.
Add a unit called "Teamleader" to your mission. The Teamleader will not grab the weapon the arrested dropped when he is the players group. (used to simulate a officer or VIP in the players group).
FOURTH:
Add the following to the players init:
ID1 = this AddAction [""Yell 'Drop your Weapons'"",""Capture.sqs""]
FINISHED: So what should happen ? Point your gun on someone in the VICTIMS array you is near you (about 50m), select the Yell "Drop your Weapons" action out of the action menu. He will go prone, drop his weapon (if he has one) and stand up with the hands behind his head. A member of the players group (or the player himself) will run to him search him and takes his weapon. If the member is on the east side, there is a 10% chance that he is brave and tries to grap his gun again.
After the member of the players group is back on this place or after about 2 minutes (what ever happens first). The arrested joins the unit called corpsman.
Please note it is still in Beta. If you find any errors or problems i am more than willing to correct them. Ah, well a last thing if you use it for your missions etc, which you publish please mention my name in the readme.
Greetings
Kuro
Sorry attach does not work ,please download the Arrest.zip from
http://www.modify-the-game.com/OFP/Arrest.zip
-
Hello, just wanted to say great arrest script. I was wondering if you had time to update it to arrest multiple people. I tried modifying it ( for my own personal use) but alas my german is non existent and therefore some of the changes I've made have not worked. Thnaks in advance for any reply.
-
Hi there Kuro,
Just tried this arrest script and its very good ;D , sumthing im gonna use in a mission im making now. Just one thing, wen i order the guy to drop his weapon another option comes up saying "create concealment", wen i click on that an error comes up saying "Missing script - Capture and (something)"
Cud u zip it up and put it on here or if its not that important how can i get rid of it.
Thanks alot.
Gooner