OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mizilus on 04 Oct 2005, 21:33:00

Title: west target west
Post by: Mizilus on 04 Oct 2005, 21:33:00
I have a mission in which I want a west unit to "go rogue" and target pretty much everyone. East, west, civilians, everyone. How do I make this happen?
Title: Re:west target west
Post by: macguba on 04 Oct 2005, 22:08:41
This might be a little tricky.   We need more details:  for example, where does the player fit into this?   Will East and West be present in the same area at the same time?   Will there be any cutscenes around?

Making everybody target him is easy:

loon1 addRating -10000
Title: Re:west target west
Post by: Mizilus on 04 Oct 2005, 22:22:22
Say I have a mission that involves the player and players group, some mercenaries, some police, some east soldiers, civilians, and the "rogue group".

I want the mercenaries to target the players and police.

I want the police to target the mercenaries and any other "east" units they encounter as well as the rogues.

The east soldiers will target the players group, the police, and the rogue group.

the civilians will get in the way.

The rogue group will shoot anything that moves.


Hope that makes sense. For the most part the mercs and rogues are the ones I think may give me trouble.
Title: Re:west target west
Post by: macguba on 04 Oct 2005, 22:45:38
Well that's easy then.   Set Resistance friendly to nobody.

West
player
police

East
mercenaries
east

Resistance
Rogue


If any unit is not naturally on the correct side, group it under a group leader of the appropriate side, with the group leader's probability of presence slider set to zero.

Make civilians belong to whichever side they are likely to encouter.  They won't get shot at by the local military because they are on the same side, but the Rogues will shoot at them.
Title: Re:west target west
Post by: Mizilus on 04 Oct 2005, 22:57:26
Ok. I understand most of that but how do I make resistance friendly to nobody and how to I make a naturally west unit "resistance"?
Title: Re:west target west
Post by: macguba on 04 Oct 2005, 23:28:50
Quote
how do I make resistance friendly to nobody
At the top right hand corner of the Mission Editor is a picture of a sun and a cloud.  Click on it.  It's called the Intel Box.   Here you write the name of the mission, set the weather and the attitude of the Resistance. (Click on what you want.)

Quote
how to I make a naturally west unit "resistance"?
Quote
group it under a group leader of the appropriate side, with the group leader's probability of presence slider set to zero.
Title: Re:west target west
Post by: The-Architect on 04 Oct 2005, 23:30:57
In the same window that you set time and date there is a bit at the bottom where you can set Resistance to be friendly with nobody.

As for the making a West guy a Resistance guy you place a Resistance soldier, and in his init field you put,

deletevehicle this

Then you place your West guy and group him to the Resistance soldier. Do this by selecting the groups tag and dragging a line from the West guy to the Resistance guy. There should now be a blue line between them.

What it does is delete the Res guy at the beginning of the mission thus making the next guy the leader. He's West but he's Resistance.
Title: Re:west target west
Post by: The-Architect on 04 Oct 2005, 23:31:37
Damn it.  :P
Title: Re:west target west
Post by: macguba on 04 Oct 2005, 23:37:36
 ;D

Love the sig line btw.   ;D ;D ;D
Title: Re:west target west
Post by: The-Architect on 04 Oct 2005, 23:39:59
You think I should credit the author?
Title: Re:west target west
Post by: Mizilus on 04 Oct 2005, 23:44:39
Excellent. This will help a lot for more than just this mission.

Thanks guys.
Title: Re:west target west
Post by: macguba on 04 Oct 2005, 23:44:40
@Archie - Nah, I know who it is and he's too lazy to deserve it.  :moon:

@Mizilus - :thumbsup:
Title: Re:west target west
Post by: Mizilus on 05 Oct 2005, 00:56:38
Oh, real quick, in this mission I also want to have vehicles with low fuel. How is that done?

Sorry for the rookie questions.
Title: Re:west target west
Post by: Planck on 05 Oct 2005, 02:00:25
Hmmm.....set the fuel slider to low perhaps?


Planck
Title: Re:west target west
Post by: Triggerhappy on 05 Oct 2005, 06:05:39
;D

Love the sig line btw.   ;D ;D ;D

mac! offtopic?!? now i've seen everything

 :o  :wow: :o  :wow: :o  :wow: :o  :wow: :o  :wow: :o  :wow: :o  :wow: :o
Title: Re:west target west
Post by: macguba on 05 Oct 2005, 09:17:39
No you haven't, I posted on the wrong board last night as well.  :wow:

These Nurofen Plus must be stronger than I thought.


@Mizilus, please post as many rookie questions as you like.  :)   All we ask is that you do your research first - read the tutes in the Editors Depot, and search the forum and the FAQ first.
Title: Re:west target west
Post by: Mizilus on 05 Oct 2005, 09:30:57
yeah I usually search the forum for a few days. Then I'll google it. This of course is after just trying stuff.

Some day, when I get my band buddy to break out his recording gear for voices and I figure out how to make cinematic sequences, I'll have a mission or two (the cream of the crop for me) to share.
Title: Re:west target west
Post by: Mizilus on 05 Oct 2005, 09:31:51
Hmmm.....set the fuel slider to low perhaps?


Planck


(slaps forehead)

Never noticed that before. Thank you.
Title: Re:west target west
Post by: The-Architect on 05 Oct 2005, 11:20:15
You can also use the setfuel command.

UnitName SetFuel 1

Number go from 1 (full) to 0 Empty. You'd need a number of about 0.2 maybe.