Jump to content
  • 0

Call a server-side script from client side (eg. via admin tools)


PetuniaEpoch

Question

Hey guys :)

 

What would be the best way to call a server-side script from the mission pbo - like from blue pheonix's admin tools?

 

Say I have a script called 'blah.sqf' in the server PBO...

 

I admin tools, I make a menu option to call a SQF file called 'callblah.sqf'

 

In 'callblah.sqf' I put what? something like:

 

 

call compile "\z\addons\dayz_server\blah.sqf";
 

or 

compile preprocessfilelinenumbers "\z\addons\dayz_server\blah.sqf";
 

_nil = [] execVM "\z\addons\dayz_server\blah.sqf";
 

Either of those look even close to being right to anyone?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

You're right, I got a file not found :P I guess mission pbo can't compile stuff from server pbo like that.

I've used the publicVariable before (made a right-click spawn a snowman for xmas which executed a server-side script from client side) - I guess I'll play with that on the test server :)

Thanks!

That will not work. Look into publicVariable and publicVariableEventHandler

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...