OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: BUNNY on 30 Nov 2004, 07:04:24
-
Does the hint box (left upper corner) show to everybody in mp-game? In cti it shows the score only to player who activates it.
How can I make the hint box to show only tothe person who activates the script?
-
put the hint command in the script
Added:
and No.. it doesn't show to everyone.. at least not to my knowledge
-
it's been my experience that hint and hintc show to everyone, but I only use it in global triggers, perhaps it depends on how the hint is called
-
It depends on how the hint is called.
I'm not an MP expert but I believe that scripts are local and triggers are global.
Read snYpir's OFPEC guide to MP mission making in the Editors Depot.
-
Not all scripts are local offcourse...
When the game starts it reads some scripts global,like init.sqs,intro.sqs.From within this global place U can exec more serverscripts([] exex "globalscript.sqs") or more local scripts:
?!(local server):[] exec "localscript.sqs"Call the hint in global scripts and everybody will see it,call it from a local place and only U will see it.
You can further split up the audiance of the hintbox with the command player or combinations in global scripts like:
?side player == WEST:hint"only WEST can read this"
?!alive player:hint "Rest in Peace dummy :D"
?player==flagowner flag east:hint"keep running dont look back ;)"
?vehicle player ==player:hint"dont leave the keys behind ffs"
Or U can use a Radio trigger with the hint in the On Activation.