Hello,
I want a resource image (.paa) to be shown (see below) and an object to say a sound at the same time.
However, as soon as the say command is given the resource disappears, even though it should show for another 10 seconds at least.
Without the "say" command it works as it should... weird???
.ext
class RscTitles
{
class rm
{
idd=-1;
movingEnable=true;
duration=15;
fadein = 2;
fadeout = 3;
name="rm";
controls[]={"rm"};
class rm
{
x = - 0.65; y = - 0.4;
w = 2.3; h = 2.0;
type = 0;
idc = -1;
style = 48;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = BitStream;
sizeEx = 0;
lineSpacing = 0;
access = ReadAndWrite;
text = "rm.paa";
};
};
};
class CfgSounds
{
sounds[] = {mySound};
class mySound
{
name = "mySound";
sound[] = {\sound\mySound.ogg, db + 30, 1.0, 100};
titles[] = {0, ""};
};
};
objectSay.sqf
while {isNil "myVar1" AND isNil "myVar2"} do
{
myObject say "mySound";
sleep 1;
};
The resource is started through a trigger, and the image is found in the triggers list of resources.
I don't see a logical reason for a command collision, is this a bug?
Thanks in advance,
Laggy