OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: acdwrp on 13 Sep 2007, 14:11:57

Title: Custom tracks
Post by: acdwrp on 13 Sep 2007, 14:11:57
ok, I need some help on this. Created a simple mp mission, and in one of the waypoints in on activ field wrote playmusic "filename.ogg". But for some reason only server can hear those soundtracks. I thought that waypoints are synchronized with all computers, or am i wrong?
Title: Re: Custom tracks
Post by: Mr.Peanut on 14 Sep 2007, 16:31:53
In my OFP experience WP are local. If the code going into the OnActivation is global, you're fine, otherwise you need to publicVariable a boolean flag that sets off a trigger for everyone else, and have the trigger call your code.
Title: Re: Custom tracks
Post by: Nixer6 on 15 Sep 2007, 00:08:29
I think I follow you Mr P.

Does this mean the code executed by a WP is local and that executed by a trigger is global?