OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Jan on 23 Feb 2009, 12:29:40

Title: Need help!!
Post by: Jan on 23 Feb 2009, 12:29:40
Okay i got question.How can i make a Unit speak with a voice and speak with a voice from Radio.
Then i wanted to ask how i make PAPA_BEAR: to speak not some Foxtrot black or whatever heh.. :confused:
Title: Re: Need help!!
Post by: zwobot on 23 Feb 2009, 12:58:19
For a normal unit to speak you need to use the say command. For radio chat you need to use groupRadio, sideRadio (http://community.bistudio.com/wiki/sideRadio) or globalRadio in conjunction with a sound file defined in the description.ext file
All this should be explained in this sound tutorial from the Editors Depot (http://www.ofpec.com/ed_depot/index.php?action=details&id=488&game=OFP).

For Papa_Bear you need to use sideRadio in a special way, it is explained in the Biki. Furthermore you can have custom callsigns for any unit with the Custom Callsign Addon from Mapfact.net (http://www.mapfact.net/include.php?path=content/download_eng.php&contentid=322&PHPKITSID=da7075da71be5c69223db70d07eef3cb)
Title: Re: Need help!!
Post by: Jan on 23 Feb 2009, 14:24:08
Thx :D
Title: Re: Need help!!
Post by: eegore on 23 Feb 2009, 19:35:43

  FYI to help other members out when searching it would be handy of your subject title contained what you were talking about.  That way later on if someone has the same question and actually bothers to search it, the subject line will show up in their search. 

  Also adding the solution if you find one helps, I tend to forget to do that sometimes and I'm one of thoe guys that runs into posts that say "I found a solution, nevermind"  and want to know what the solution was. 

 
Title: Re: Need help!!
Post by: Jan on 23 Feb 2009, 19:53:30
eegore,do you know where to get soldier (civils)?
Title: Re: Need help!!
Post by: eegore on 23 Feb 2009, 20:10:02

  Do you mean how to make a soldier be on the civilian side? 

  What I thinbk would work is making a civilian a higher rank than the soldier, then group the two together and type into the Initialization: of the Civilian

deletevehicle this 

 Or you can type:

setcaptive true 

  Into the soldiers init, but he will still fire at enemies unless you "removeallweapons this" on the guy.
Title: Re: Need help!!
Post by: zwobot on 23 Feb 2009, 22:07:14
Another option is to edit the side of the unit in the mission.sqm to "CIV", some people consider this a "hack" or "cheat" but in my opinion it is the most convenient way to get a unit to the side you want to. The only downside is that you cannot edit this unit in the editor again (it will be reverted to it's original side afterwards).
Title: Re: Need help!!
Post by: Jan on 24 Feb 2009, 16:35:32
Okay....Il try :D
Title: Re: Need help!!
Post by: Flashpoint on 11 Apr 2009, 12:22:26
for PAPA_BEAR Just do the following script to your activation box:
[West,"base"] sideRadio "m07r01";