PetuniaEpoch Posted March 22, 2014 Report Share Posted March 22, 2014 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 More sharing options...
0 PetuniaEpoch Posted March 22, 2014 Author Report Share Posted March 22, 2014 Thanks! I'll test that shortly! Link to comment Share on other sites More sharing options...
0 adg Posted March 22, 2014 Report Share Posted March 22, 2014 That will not work. Look into publicVariable and publicVariableEventHandler PetuniaEpoch 1 Link to comment Share on other sites More sharing options...
0 PetuniaEpoch Posted March 23, 2014 Author Report Share Posted March 23, 2014 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 More sharing options...
0 f3cuk Posted August 6, 2014 Report Share Posted August 6, 2014 Did you ever find a decent solution to this? Link to comment Share on other sites More sharing options...
Question
PetuniaEpoch
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:
or
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now