OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Cooba on 01 Apr 2003, 15:50:06
-
Hi :)
I need advice...
...i n my mission I want create radio message by SIDECHAT command.
and its look that:
Alpha Black 1 "Blalalala blalala"
i want change ALPHA BLACK 1 to MySoldierName
John Rambo "Blablabla blala"
What i have to do
THX
-
I'm thinking that you can't do that.. Please correct me if I'm wrong but you can only use the build in names like Papa Bear and so on.
I've always just put in
unit sidechat "(John Rambo) I love me!"
-
There's a way of setting your units ID through Description.ext! Check it out!
Alpha Black (Jonny) : "BLA BLA"
Where "jonny" is the unit's name
-
You could make a small addon included with the mission with a config.cpp something like this:
class CfgPatches
{
class johnrambo
{
units[] = {};
weapons[] = {};
worlds[] = {};
requiredVersion = 1.10;
};
};
class CfgWorlds
{
class GroupNameList
{
letters[] =
{
Johnrambo
};
};
class GroupNames
{
// note: this is array of classes
// it must not contain any non-class members
class Johnrambo
{
name = "John Rambo";
image = "a.paa";
};
};
};
just put this in a .pbo and you are ready to go.
-
What you have to do is read this tutorial (http://www.ofpec.com/editors/resource_view.php?id=447)by Toadlife.