OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: hurlothrumbo on 30 Apr 2003, 14:12:41

Title: All players getting a hint
Post by: hurlothrumbo on 30 Apr 2003, 14:12:41
OK, I really should know this........
What I want to do is have a hint displayed on all players in MP games screens.  In singleplayer, yeah, simple enough hint "whatever"

But this doesnt work in multiplayer.  How do I make this a global hint?  I've searched.
I thought hints did work in MP.
Title: Re:All players getting a hint
Post by: Terox on 30 Apr 2003, 18:10:54
its the same
hint "blah blah blah"
Title: Re:All players getting a hint
Post by: hurlothrumbo on 30 Apr 2003, 18:28:15
Hmm.  The guy who was testign it MP said it didn't- he msut have not seen it.  Thanks :)
Title: Re:All players getting a hint
Post by: Lykurgos on 01 May 2003, 09:00:55
Try hintformat "blah blah"
Title: Re:All players getting a hint
Post by: Killswitch on 03 May 2003, 09:31:55
Quote
I thought hints did work in MP.

They do. However, the "hint" command has to be executed on all client machines (IIRC). I'm guessing you're doing the "hint" in either a script running on the server or only on one client.

Put the hint line in a trigger and have that trigger activate somehow.

That "somehow" could be all kinds of "somehows", like a vehicle entering the triggers activation area or by having the trigger wait for a public variable to become true. The latter would require you to initialize that
variable (let's call it "hintplayers") in for example the init.sqs.

Then, in a script running somewhere, preferably on the server, when the time is right, there's a

Code: [Select]
hintplayers=true
publicVariable "hintplayers"

If you tell us a bit more about when/why the players need that hint, we can perhaps give you better advice what to do.

Title: Re:All players getting a hint
Post by: hurlothrumbo on 04 May 2003, 15:55:03
I think the other guy just didnt see the hint, because it is in a trigger.  Thanks anyway killswitch.