Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Yolo Joe

Getting player name to sideChat

Recommended Posts

Now

[west,"HQ"] sideChat format["I remember seeing a ammobox in that burger kiosk earlier."];

CROSSROAD: "I remember seeing a ammobox in that burger kiosk earlier."

I need it to be:

[west,"PLAYERNAME"] sideChat format["I remember seeing a ammobox in that burger kiosk earlier."];

PLAYERNAME: "I remember seeing a ammobox in that burger kiosk earlier."

I dont quite understand how the "%1, name Player" thing works :(

Share this post


Link to post
Share on other sites

Why so complicated?

player sideChat "wtf!";

Share this post


Link to post
Share on other sites

You don't even need format anymore. Simply use (untested):

hint (name player); // returns "IndeedPete"
hint str(15.77); // returns "15.77"

_x = [1, "Hi, there!", Soldier1];
hint str(_x); // sould return "[1, 'Hi, there!', Soldier1]"

Share this post


Link to post
Share on other sites
Sign in to follow this  

×