ShootingBlanks
OpenDayZ Guru!
Rule #1: never accept any code someone gives you as correct, always double check it.
I wrote the while condition wrong, it should be:
while {true} do {
So replace the () with {} and at least this part of the code should be correct. is this script being called from your init.sqf so its running on each client all the time?
And lets not forget about whats banned and whats not banned. If you are running Epoch, then you are okay because nothing is banned. If running Dayz or Overwatch then make sure you are using an unbanned marker type. Thats the kind of thing that never made sense to me, why ban marker types or available skins? Military vehicles/gear I can understand, but Markers? WTF!
AND ... whenever you assign a variable to something like
_markerpos= createmarker["MTVR", getpos theBus];
An object is being created and the variable _markerpos will BE that object. So now _markerpos is going to contain all the information for your marker object including the position and the "MTVR" name you gave it. So you add/change any information about that object you have to refer to its variable _markerpos
So change your
"MTVR" setMarkerType "mil_dot";
"MTVR" setMarkerColor "ColorRed";
to
_markerpos setMarkerType "mil_dot";
_markerpos setMarkerColor "ColorRed";
Again, don't take what i say (or anyone else for that matter, but especially mine as I make a lot of mistakes) as gospel, always check the syntax if it doesn't work correctly.
I wrote the while condition wrong, it should be:
while {true} do {
So replace the () with {} and at least this part of the code should be correct. is this script being called from your init.sqf so its running on each client all the time?
And lets not forget about whats banned and whats not banned. If you are running Epoch, then you are okay because nothing is banned. If running Dayz or Overwatch then make sure you are using an unbanned marker type. Thats the kind of thing that never made sense to me, why ban marker types or available skins? Military vehicles/gear I can understand, but Markers? WTF!
AND ... whenever you assign a variable to something like
_markerpos= createmarker["MTVR", getpos theBus];
An object is being created and the variable _markerpos will BE that object. So now _markerpos is going to contain all the information for your marker object including the position and the "MTVR" name you gave it. So you add/change any information about that object you have to refer to its variable _markerpos
So change your
"MTVR" setMarkerType "mil_dot";
"MTVR" setMarkerColor "ColorRed";
to
_markerpos setMarkerType "mil_dot";
_markerpos setMarkerColor "ColorRed";
Again, don't take what i say (or anyone else for that matter, but especially mine as I make a lot of mistakes) as gospel, always check the syntax if it doesn't work correctly.
Last edited: