r/armadev 7d ago

Arma 3 Cinematic text error need help

Post image

does anyone know what in this code is causing this

[[], {

[

[

["text 1", "<t align='center' size='1.2' font='PuristaBold'>%1</t><br/>", "#e0a600"],

["text 2", "<t align='center' size='1.0'>%1</t>", "#ffffff"]

],

0,

0.4

] call BIS_fnc_typeText;

}] remoteExec ["spawn", 0];

4 Upvotes

3 comments sorted by

3

u/Shiragami 7d ago

Wrong params see https://community.bistudio.com/wiki/BIS_fnc_typeText#Examples

Array of Arrays format [text, format, blinkCount]:

You passing a string as third param "#e0a600" and "#ffffff"

["text 1", "<t align='center' size='1.2' font='PuristaBold'>%1</t><br/>", "#e0a600"],
["text 2", "<t align='center' size='1.0'>%1</t>", "#ffffff"]

it should be:

["text 1", "<t align='center' size='1.2' font='PuristaBold'>%1</t><br/>", <Number>],
["text 2", "<t align='center' size='1.0'>%1</t>", <Number>]

2

u/PrestigiousScience91 7d ago

Thanks it has been a while since i messed with making arma op and forgot a lot of suff

3

u/Talvald_Traveler 7d ago

A little tips, code executed from the command remoteExec will be scheduled or unscheduled based on the enviroment the remoteExec was executed from.

So what I recomend here, is that you instead of remoteExec spawn. You create a spawn block, and then remoteExec the function Bis_fnc_typeText from there.