Sign in to follow this  
Followers 0
TheMeq

Using Calls from other PBO's

1 post in this topic

Hello, in Defent's mission system (a3_dms.pbo), he has a really nice call to make the text appear at the top. The function is: 

[string,string] call DMS_fnc_BroadcastMissionStatus;

If I create an announce script and place it in my missions (Exile.Altis.pbo) file and call this function here:

if (!isServer) exitWith {};

_delay = 300;
sleep 180;

_messageArray = [
	["Check out our community website at -snip-"],
	["Join our TeamSpeak if you have any questions: -snip-"],
	["We are looking for helpers! Speak to -snip- if you are interested."],
	["Vehicles parked in safe zones will be deleted after 24 hours."]
];

while {true} do
{
	sleep _delay;
	_msg = _messageArray select (random (count _messageArray - 1));
	["Notice",_msg] call DMS_fnc_BroadcastMissionStatus;
};

will it show my message as it does for the missions, will the function be loaded on the server, or will it only be within the scope of a3_dms? 

Sorry if this is not the correct place to post this, I couldn't find a suitable place for it. 

Thanks

Share this post


Link to post
Share on other sites
Advertisement

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.