Jump to content
Captain Apple

AddAction + (titleText + RemoteExec)

Recommended Posts

this addAction ["ACTION", {["<t color='#ff0000' shadow = 0 size='1'>SUBJECT: </t><t color ='#FFFFFF' shadow = 0 size ='1'>TEXT</t>", "PLAIN DOWN", -1, true, true] remoteExec ["titleText",  0]}];

So this is my init on an object. I'm trying to execute this titleText to every client on server when someone uses the action on the object.
Currently, when i press Action, nothing happens, no script error pops up either..

 

Share this post


Link to post
Share on other sites

try:

this addAction ["ACTION", { {titleText ["<t color='#ff0000' shadow = 0 size='1'>SUBJECT: </t><t color ='#FFFFFF' shadow = 0 size ='1'>TEXT</t>", "PLAIN DOWN", -1, true, true]} remoteExec ["call"]}];

  • Like 1

Share this post


Link to post
Share on other sites
10 minutes ago, pierremgi said:

try:

this addAction ["ACTION", { {titleText ["<t color='#ff0000' shadow = 0 size='1'>SUBJECT: </t><t color ='#FFFFFF' shadow = 0 size ='1'>TEXT</t>", "PLAIN DOWN", -1, true, true]} remoteExec ["call"]}]; 

That did the trick, thanks a lot, appreciate it!

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

×