Two things guys, just a little unsure about.
Some people are having trouble with some scripts of mine, and I'm trying to get them working for everyone.
I'm unclear as to the difference in executing scripts or commands server vs client side - as in if I call in the mission.sqm or init.sqf of the mission.pbo, will these be executed server or client side? I'm creating vehicles to play sounds/cause exploisions, and there may be some sync issues.
So I am debugging, adding new diag_logs and whatnot to make the RPT log show exactly what is happening - in creating a variable to hold the position data of the vehicles as they are created - ie _pos = position _sound; (where _sound is the vehicle creating a siren). Then I am showing them in the diag_logs to make sure they match their intended target (no dual bombings, or inaccurate, or whatver).
----This works beautifully for the target, the siren sound vehicle, but when I try to get it for the _espl (explosion vehicle) it returns only 'array' and none of the location data.
--------I tried putting str(_pos2) to convert the array into a string, no luck there
Here is the code I'm talking about.
_pos2 = position _espl;////////////////////////this is returning array...why not any of the others
diag_log format ["AIRRAID: BOMB: %1 | TARGET: %2 | SHOULD MATCH APPROX",str(_pos2),_targetpos];
I'm still working on this, but I'm just experimenting at this point - I guess I can do a _pos2 select 0; etc, but why would that not work when my other _pos and _pos1 are working perfectly?
See posts in my airraid thread near the bottom for more info.
Some people are having trouble with some scripts of mine, and I'm trying to get them working for everyone.
I'm unclear as to the difference in executing scripts or commands server vs client side - as in if I call in the mission.sqm or init.sqf of the mission.pbo, will these be executed server or client side? I'm creating vehicles to play sounds/cause exploisions, and there may be some sync issues.
So I am debugging, adding new diag_logs and whatnot to make the RPT log show exactly what is happening - in creating a variable to hold the position data of the vehicles as they are created - ie _pos = position _sound; (where _sound is the vehicle creating a siren). Then I am showing them in the diag_logs to make sure they match their intended target (no dual bombings, or inaccurate, or whatver).
----This works beautifully for the target, the siren sound vehicle, but when I try to get it for the _espl (explosion vehicle) it returns only 'array' and none of the location data.
--------I tried putting str(_pos2) to convert the array into a string, no luck there
Here is the code I'm talking about.
_pos2 = position _espl;////////////////////////this is returning array...why not any of the others
diag_log format ["AIRRAID: BOMB: %1 | TARGET: %2 | SHOULD MATCH APPROX",str(_pos2),_targetpos];
I'm still working on this, but I'm just experimenting at this point - I guess I can do a _pos2 select 0; etc, but why would that not work when my other _pos and _pos1 are working perfectly?
See posts in my airraid thread near the bottom for more info.