OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Captain Crunch on 21 Apr 2003, 19:04:25

Title: How to get a civilian killed?
Post by: Captain Crunch on 21 Apr 2003, 19:04:25
I'm a civilian status unit in my mission, how do I get everyone to shoot at me??

It don't work with any sides, nor waypoints!
Title: Re:How to get a civilian killed?
Post by: Kaliyuga on 21 Apr 2003, 19:09:51
 Well.. someone is surely going to come along and tell you to open the mission.sqm and change the side in there....    but....

you should simply do this.....

group yourself with an east/west officer in the misson editor.. make sure he is the commander and not you ;)

then when the mission starts use deletevehicle on him, you take command and everyone assumes you're on the same side as the officer you were initially grouped to ;)
Title: Re:How to get a civilian killed?
Post by: Iwesshome on 21 Apr 2003, 19:10:25
Code: [Select]
doFire target
Operand types:
    target: Object
Type of returned value:
    Nothing
Description:
    Order unit do commence fire on given target (silent). If target is objNull, commence fire to current target (set using dotarget or commandtarget).

Example:
    soldierOne doFire objNull

That should work... IW

Title: Re:How to get a civilian killed?
Post by: macguba on 21 Apr 2003, 19:47:52
If you want everyone to shoot at you write

this addrating -10000

in your init field.
Title: Re:How to get a civilian killed?
Post by: Captain Crunch on 21 Apr 2003, 20:40:44
HolyS**t!!!

    OK! I guess I asked my question wrongly!

 I tried macguba's idea and even units in my group shoot me!!!

AHEM! I correct my question, How could I get at least one team to shoot at me, and what about two teams shooting at me? To take a guess from macguba's method, would it be something like:

   this addrating -7500               ????? ::)

eh it's just a guess!!!

And can I add weapons and magazines from the mission.sqs file! Cos Í tried to call a script from the unit's Init field, it works but the weapon is always unloaded! How would this be possible?
Title: Re:How to get a civilian killed?
Post by: macguba on 21 Apr 2003, 20:57:26
lol I did say everybody (http://gamer.co.il/gamer/forum_images/redbite.gif)

Addrating is a pretty blunt instrument, so I doubt it would change anything.   Go with Kali's suggestion, then you can be East, West or Resistance.   Write deleteVehicle this in the init field of the fake leader.

When using addWeapon and addMagazine always add a magazine first to make the weapon loaded at the start of the mission.   Civvies work like anybody else, except there is no LAW slot.

Tell us more about this script problem, if its still a problem.
Title: Re:How to get a civilian killed?
Post by: Captain Crunch on 21 Apr 2003, 21:38:04
Nope! ;)

   No more problems! Well...Concerning this matter at least!!

Many thanx to You guys! Hopefully will turn my mission a descent fun. I'll let You know. :D

While I'm at quetions and that I get many fonctioning responses:

I have this Cargo Rope and the script that came with it. It works all fine exept that if I take another chopper, then the rope ofcourse isn't situated at the right place. Any Idea how I can reposition it where I want?? (The Cargo Hook V.1.0 script is from RonaldV, You can find it in this site, I had the link below:


http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_4


I'ts the one called       Chinook Rope Script and Addon

Aren't I getting far from the "How to get a civilian killed" subject?!?   ::)