Jump to content
Sign in to follow this  
ryansoper

Broadcaasting AddActions to all Players?

Recommended Posts

Hi guys, I run into a bit of an issue when hosting a script on a dedicated server. All the addActions that are added to various things on init don't display. I realise I have to broadcast/sync the addActions to the player, is there a preferred way of doing this? Or is it just a case of PublicVariable all the way?

Share this post


Link to post
Share on other sites

addAction is a local command, if you put the addAction in the init of an object, every client will run it. Also you can hard code it in the init.sqf.

If you want to add an Action to a object you have to make sure all clients run that command.

Share this post


Link to post
Share on other sites

this is what i have added to flag pole init. to teleport back to base:

this addAction ["Teleport to BASE", "tele\teleport_base.sqf"];

"tele" is the folder "teleport_base" is the .sqf file inside this folder.

Hope this helps.

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  

×