Jump to content
Sign in to follow this  
fortun

spawn BIS_fnc_dynamicText, getting text two times?

Recommended Posts

When using "spawn BIS_fnc_dynamicText", it works perfect.

However, how could i do if i want it do display two texts at same time?

If i have for example

	["<t size='1.8' color='#ffffff'>This is TEXT ONE/ FIRST</t>",0,0.5,3,2] spawn bis_fnc_dynamictext;   ///First text
sleep 1; 
     ["<t size='1.8' color='#ffffff'>My other text that i want to fade in at the same time with 1 sec delay</t>",0,0.7,3,1] spawn bis_fnc_dynamictext;   ///Other text i want to come in at the same time as first

Then the first text disappears directly as the other text starts. How could i get pass that so i can have both texts at same time?

Share this post


Link to post
Share on other sites

To have them show at the same time each dynamic text needs to be put on its own resource layer. Param 6 of the function allows you to specify a resource layer.

Parameter(s):

_this select 0: Text

_this select 1: (Optional) X coordinates

_this select 2: (Optional) Y coordinates

_this select 3: (Optional) Duration

_this select 4: (Optional) Fadein time

_this select 5: (Optional) Delta Y

_this select 6: (Optional) Resource layer

txt1Layer = "txt1" call BIS_fnc_rscLayer;
txt2Layer = "txt2" call BIS_fnc_rscLayer;

["<t size='1.8' color='#ffffff'>This is TEXT ONE/ FIRST</t>",0,0.5,3,2,0,txt1Layer] spawn BIS_fnc_dynamicText;
sleep 1;
["<t size='1.8' color='#ffffff'>My other text that i want to fade in at the same time with 1 sec delay</t>",0,0.7,3,1,0,txt2Layer] spawn bis_fnc_dynamictext;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×