Jump to content
Sign in to follow this  
drivetheory

hint players in radius using addaction

Recommended Posts

I can't seem to get this basic script idea to hint all players within the given radius in a multiplayer game.

the constants:

1) 1 flag pole placed in game called "hint_pole"

2) init field of that flag pole: this addAction ["Generate Test Hint","distance_based_hint.sqf"];

I've tried to following:

_players = nearestObjects [hint_pole,[],30];
{if (_x == player) then {hintSilent "TEST HINT #1";};} forEach _players;

and

_players = (position hint_pole) nearEntities 50;
{hintsilent "TEST HINT #1"} forEach (_players);

yeah.. im not very good at this scripting thing, but im relentless in my pursuit of trying to make things work...

Edited by drivetheory
typos

Share this post


Link to post
Share on other sites

That's because the script executed by your action, here distance_based_hint.sqf, is executed locally to the person who called the action. Did my answer in your other thread not work?

Share this post


Link to post
Share on other sites

i saw the MP Framework but it wasn't very elaborate in it's hint examples/limitations, does rHINT support formatting and variables?...

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  

×