OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: eversman on 20 Jun 2003, 14:43:39

Title: Litte Birds problem.... help!!!!
Post by: eversman on 20 Jun 2003, 14:43:39
Hi all, i have small problem.
First fo all...
In my mission i have Blackhawk and two Litte Birds. Player is a Blackhawk pilot and i want that Litte Birds fly follow player chopper but not beeing assigned to his group.
And second...
I want that when guy witch radio  is dead radio messages are disabled. I used enableradio command but it not work. What should i do???? ::)
Title: Re:Litte Birds problem.... help!!!!
Post by: Iwesshome on 20 Jun 2003, 14:59:04
Q1. You can use the dofollow command...

soldierOne doFollow player

Q2. No idea!
Title: Re:Litte Birds problem.... help!!!!
Post by: Igor Drukov on 20 Jun 2003, 16:33:21
@Iwesshome
I'm not sure "dofollow" will do the trick, I think it's only a "return to formation" type o' thing, that is, it only works for units in the same group.

Hence to eversman :

a simple way could be to create a trigger :
condition : (mybird distance player)>150
activation : mybird domove getpos player

that way you'd create a loop compelling the loons to follow you;

As to Q2 :

if you're speaking about Radio Alphas, the 0-0-x, use setradiomsg :
In a trigger :
condition : !(alive myguy)
activation : 0 setradiomsg "null"

Title: Re:Litte Birds problem.... help!!!!
Post by: LCD on 20 Jun 2003, 18:24:42
@ igor

think da same - but he needs 2 make da trig repeatable also ;) ;D  8)

@ ever

2 - i didnt understand ??? ::) :P

LCD OUT
Title: Re:Litte Birds problem.... help!!!!
Post by: Igor Drukov on 20 Jun 2003, 19:18:39
Quote
think da same - but he needs 2 make da trig repeatable also

*cough*  :beat:

Cheers mate, thanks for your careful re-reading !
Title: Re:Litte Birds problem.... help!!!!
Post by: eversman on 20 Jun 2003, 21:45:02

2 - i didnt understand ??? ::) :P

LCD OUT
 
Ok LCD... imagine that you are a SEAL team leader in Nam mission. You are in joungle and VC killed your radioman. You or any man from your team must take the radio from this guy or communication witch base will be lost. No air support, no extraction... you daing slowwwly..... ;D :P

you understand now... ;)
Title: Re:Litte Birds problem.... help!!!!
Post by: LCD on 20 Jun 2003, 22:00:59
shud b easy ;D

use dis condition b4 every radio transmition ;)

? "_X hasweapon {radiotype}" count units groupname > 0

da radiotype is da class of da radio - check it in da reame (da same class used 4 addweapon command ;D)

LCD OUT
Title: Re:Litte Birds problem.... help!!!!
Post by: eversman on 20 Jun 2003, 22:04:58
thanks LCD, i try it.
Title: Re:Litte Birds problem.... help!!!!
Post by: eversman on 21 Jun 2003, 01:15:08
I have one question... agin ;D
What should i do to unit sometimes been in difrent places.
You knew, mission replayity. I create a mission when player must locate a NVA officer and i wont to this guy been sometimes in difrent huts or even... vilages
Title: Re:Litte Birds problem.... help!!!!
Post by: LCD on 21 Jun 2003, 01:48:14
make som markers (can b invisible) nd group him 2 em - he wil start in 1 of em (not alwayz da same) - i think ;D

if not use random nd setpos comands ;D

LCD OUT
Title: Re:Litte Birds problem.... help!!!!
Post by: eversman on 21 Jun 2003, 19:08:35
make som markers (can b invisible) nd group him 2 em - he wil start in 1 of em (not alwayz da same) - i think ;D

if not use random nd setpos comands ;D

LCD OUT
thanks LCD wery simple idea.... and working :o
Title: Re:Litte Birds problem.... help!!!!
Post by: LCD on 21 Jun 2003, 23:08:34
so solve da topic ;D ;)

LCD OUT
Title: Re:Litte Birds problem.... help!!!!
Post by: eversman on 22 Jun 2003, 12:14:32
so solve da topic ;D ;)

LCD OUT

LCD it's for you.... ;D
    topic solved