Jump to content
Sign in to follow this  
TemichSablin

Multiplayer Framework

Recommended Posts

I have been creating some kind of admin menu (Thanks, Dr.Eyeball ;) )for clan-based missions. But some scripts in my menu are running locally. I was @ OFPEC and have been pointed at MP Framework by BIS. I checked the Biki, tried the examples, all seemed right what I was looking for. But there is a problem. I know exactly how to make use of examples (rHINT ones) but i need more info on the use of the other commands. I tried locally executing RemoveAllWeapons command with a numerous parameters, tried everything - didn't seem to work. Now i am asking if there is any help on this "RE" stuff except the biki artcile? And by the way if you have any more examples on that please post 'em here.

Thanks in advance.

Regards, Temich.

Share this post


Link to post
Share on other sites

Did you look into the BI modules and missions?

They use the MPF all over. :)

Share this post


Link to post
Share on other sites

Good idea. Thanks for reply.

If i lure smth out there i might post it here or @ biki.

Share this post


Link to post
Share on other sites

Stupid question but how exactly do I use the Multiplayer Framework module? It doesn't show up in the module list in the editor.

Share this post


Link to post
Share on other sites

It isn't a module, it's a uhh. framework. :)

You don't add it to the map, certain things add it to the map. Anything that might use it.

But if you want to initialize it yourself...

	if (isnil "RE") then {[] execVM "\ca\Modules\MP\data\scripts\MPframework.sqf"};

Throw that infront of the script that you'd like to use the MPF in.

Now you can call all the neat little doodads that it offers.

Like a say command in one of my scripts.

_nic = [objNull, _dog, rSAY, "dog_01"] call RE;

Share this post


Link to post
Share on other sites

Oh. :o

I assumed it was a module since it was in the module category in biki. Thanks. :)

Share this post


Link to post
Share on other sites

What's wrong with my remote execution? :confused:

[nil,nil,nil,processInitCommands] call RE

I simply want every player to processInitCommands, nothing fancy.

It gives this kind of error in arma2.RPT:

Error in expression <script name () (see MPframework.sqf)",_targetScript];_error = true;};priva>

Error position: <_targetScript];_error = true;};priva>

Error Nicht definierte Variable in Ausdruck: _targetscript

The command itself is executed normally.

Share this post


Link to post
Share on other sites

try:

_nic = [objNull, unit, rprocessInitCommands] call RE;

and you only have to run it once.

Share this post


Link to post
Share on other sites
try:

_nic = [objNull, unit, rprocessInitCommands] call RE;

and you only have to run it once.

Umm, it doesn't recognize the variable rprocessInitCommands.

Share this post


Link to post
Share on other sites

processInitCommands effect is global (as setVehicle init is global). So what be the point? :rolleyes:

Share this post


Link to post
Share on other sites
processInitCommands effect is global (as setVehicle init is global). So what be the point? :rolleyes:

:eek:

lol... :p

Share this post


Link to post
Share on other sites

Should a gamelogic "server" be created? And then using

[nil, server, r....] call RE

Or is there another MPF way to execute on server only?

Edit: MPF has a BIS_MPF_logic PV'd from server, so this can be used.

Edited by alef
answering myself

Share this post


Link to post
Share on other sites

Just a question:

Does:

MPframework.sqf

Have to be executed on server only or on all clients as well?

Share this post


Link to post
Share on other sites

Does this work in config.cpp as too?

Could you explain the parameters in the array?

Share this post


Link to post
Share on other sites

Would this be what I would want for a fire truck siren?

[nil,_firetruck,"loc"+"per",rSay,"siren"] call RE;

Not sure I completely understand, but would this play the sound on all players local to the firetruck and those connecting?

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  

×