Jump to content
smirlianos

PlaySubtitles function isn't working

Recommended Posts

I try to use the default example from the wiki inside a trigger but I get the following error message, and only the last subtitle is shown. What is happening?

Error Message

 

[ 
  ["Speaker1","Subtitle1",0], 
  ["Speaker2","Subtitle2",5], 
  ["Speaker3","Subtitle3",10], 
  ["Speaker4","Subtitle5",15] 
] call BIS_fnc_EXP_camp_playSubtitles;

 

Share this post


Link to post
Share on other sites
1 hour ago, smirlianos said:

I try to use the default example from the wiki

 

Not exactly. You are calling the function instead spawning it, contrary to the wiki:
ZPh6Arh.png

//BI Wiki example:

[ 
  ["Speaker1","Subtitle1",0], 
  ["Speaker2","Subtitle2",5], 
  ["Speaker3","Subtitle3",10], 
  ["Speaker4","Subtitle5",15] 
] spawn BIS_fnc_EXP_camp_playSubtitles;

You need to add a handle if you want to spawn it from a trigger's onAct:

HARZ_Subtitles_01 = [ 
  ["Speaker1","Subtitle1",0], 
  ["Speaker2","Subtitle2",5], 
  ["Speaker3","Subtitle3",10], 
  ["Speaker4","Subtitle5",15] 
] spawn BIS_fnc_EXP_camp_playSubtitles;

 

  • Like 1

Share this post


Link to post
Share on other sites

"spawn" wasn't working that's why I used call.

I didn't know I had to use a handler though, so everything works fine now, thanks!

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

×