OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started 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.
-
its the same
hint "blah blah blah"
-
Hmm. The guy who was testign it MP said it didn't- he msut have not seen it. Thanks :)
-
Try hintformat "blah blah"
-
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
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.
-
I think the other guy just didnt see the hint, because it is in a trigger. Thanks anyway killswitch.