Jump to content
Sign in to follow this  
DJankovic

Sync player view? Server side.

Recommended Posts

Hello guys. So i spend 1 h on forum searching for my problem but no joy so i will do quick post

I made training map. And i added one script that i found for green light in c130 etc. but..problem is i cant get it working in MP. So i created server and my friend tested lights so.. he can activate them and only he will se the light and if i go and activate lights only i will se it.

I made this script

anyone know what i should do or where i did wrong with this?

init.sqf

if ((!isServer) && (player != player)) then 
{ 
 waitUntil {player == player}; 
}; 

if (isServer) then {  

Thank you for reply`s

DevilDogCro

Share this post


Link to post
Share on other sites

Hello Devil

I had the same problem one but what I did was a work around it, I am currently at work so things might no be 100% accurate.

but what I did was I just created the green & red light at the start of the mission, then used triggers with "attach to" command to add it to the osprey, or in your case c130,

If I remember it correctly I created the lights in the init.sqf so everyone spawns it when they join, and attached the light to a game-logic.

Now my way is defiantly not the best way because you have to fly through a specific zone to trigger the lights.

it was painful to create since the airplanes were supposed to do it every time they dropped someone off, and yes it was players flying the plane. basically the triggering was that when they enter the first trigger red light is activated, and after 30 sec it is detached and green light is attached instead and then another 30 sec and it is detached. I had to do this for multiple airframes.

I am sure that there are some better way with a script, but if nobody else responds this is you last way.

GuzzenVonLidl

Share this post


Link to post
Share on other sites

Hey Thank you for reply i done it like this

i created script`s

createlights.sqf (this create lights position in chinook)

nightlights.sqf (this setts night lights witch shine on whole chinook)

offlight.sqf (lights off)

redlight.sqf (red lights)

greenlight.sqf (green lights you wouldn't believe :D ) heheh

if needed i will upload this codes witch i used..and now i have problem that i see lights when they are switched but nobody else don't see it and that is the problem :(

any other way others see that scripted lights ? ill try latter your option but i hope i will be available to find better way

OFF TOPIC but i need this..evryone know that EOD mod is there any chance when i activate loud speaker that i spawn some enemy insurgents around the car mybe????

Thank you for reply GuzzenVonLidl and thank who ever replay very much

Jankovic

Share this post


Link to post
Share on other sites

well I am guessing that you are using add action to the heli to activate them, and I have unfortunately no idea how to fix that since add action is made locally and not synced to the multiplayer, just search for "addaction multiplayer" and you could possibly find something, but it will probobly be for arma 3...

Also I am sorry but I never used EOD so I dont have any solution

tell me if you want me to upload my example

GuzzenVonLidl

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  

×