OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: beretta on 12 Apr 2005, 20:44:14

Title: civilan gets handgun
Post by: beretta on 12 Apr 2005, 20:44:14
what about a script that makes the civilans join resisitence and they get a handgun if they do but they can only join resistence is this a good idea or has it been made before if so i need it
Title: Re:civilan gets handgun
Post by: dmakatra on 12 Apr 2005, 21:12:06
Y'know, it took me a few tries before I figured out what you wanted. In the English grammar, there's this brilliant little invention. It's called the dot. It's really easy to use but still very efficient. ;)

As for the script... Well, it wouldn't exactley be a script. More like 4 lines of code in a trigger... :P

:beat: *Gets Shot* :beat:
Title: Re:civilan gets handgun
Post by: greg147 on 12 Apr 2005, 21:14:09
What do you mean by 'join resistance'? Do you mean, go up to a resistance guy, select a action, and them become on the resistance side?  :P
Title: Re:civilan gets handgun
Post by: beretta on 12 Apr 2005, 22:05:18
an action like "join resistence" just like geting in a car
Title: Re:civilan gets handgun
Post by: Planck on 12 Apr 2005, 23:06:51
I don't think a unit can change sides once a mission has begun.

Civilian are usually always friendly to the resistance side anyway.


Planck
Title: Re:civilan gets handgun
Post by: Pilot on 12 Apr 2005, 23:58:00
What Planck said is true, but there might be a way around it.  You could try grouping the civilian to a high ranking resistance officer, set the officer's probablity of presence to 0, and setcaptive true the civilian.  Then, when the civilian joins resistance, setcaptive false him.

Just an idea, I'm not sure how feasible it is.  Will units enemy to resistace still target a captive unit, but not shoot?
Title: Re:civilan gets handgun
Post by: 456820 on 22 Apr 2005, 08:37:30
enemy units to the resistance will only target a captive if you do something like shoot a round somewhere or shoot one of them then they aim at you but dont fire
But that sounds like it would work