OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: BUNNY on 30 Nov 2004, 07:04:24

Title: Hint box
Post 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?
Title: Re:Hint box
Post by: CrashDome on 30 Nov 2004, 09:24:49
put the hint command in the script

Added:
and No.. it doesn't show to everyone.. at least not to my knowledge
Title: Re:Hint box
Post by: Zombie on 30 Nov 2004, 14:54:38
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
Title: Re:Hint box
Post by: macguba on 30 Nov 2004, 15:41:21
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.
Title: Re:Hint box
Post by: Platoon Patton on 30 Nov 2004, 23:12:32
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.