TFC_Silence
Aug 20 2009, 14:59
Hi all, I will try to keep this as concise as possible in order to make the questions clear.
A friend and I are creating a AP mine, I know there are alot of mine scripts about, but before you right this post off as a none searcher, this is different..
My friend wants a AP mine, that does not kill, only maims the first time.
So in order to create this I set a civillian on Utes airfield and placed 3 markers on airfield to denote mines..
This is SQS file
mine ="mineE" createVehicle [(getMarkerPos "mark01" select 0),(getMarkerPos "mark01" select 1),-0.08];
mine = createTrigger["emptyDetector",getPos mine];
mine setTriggerArea [1,1,0,false];mine setTriggerActivation ["any","present",false];
mine setTriggerStatements["this","[thislist select 0] execVM""mine.sqf""",""];
mine ="mineE" createVehicle [(getMarkerPos "mark02" select 0),(getMarkerPos "mark02" select 1),-0.08];
mine = createTrigger["emptyDetector",getPos mine];
mine setTriggerArea [1,1,0,false];mine setTriggerActivation ["any","present",false];
mine setTriggerStatements["this","[thislist select 0] execVM""mine.sqf""",""];
mine ="mineE" createVehicle [(getMarkerPos "mark03" select 0),(getMarkerPos "mark03" select 1),-0.08];
mine = createTrigger["emptyDetector",getPos mine];
mine setTriggerArea [1,1,0,false];mine setTriggerActivation ["any","present",false];
mine setTriggerStatements["this","[thislist select 0] execVM""mine.sqf""",""];
this is mine.SQF file
_unit = _this select 0;
_bomb2 = "GrenadeBase" createVehicle [(getPosASL _unit select 0),( getPosASL _unit select 1),-160];
if ((Damage _unit) >= 0.55) then {_unit setDamage 1} else {_unit setDamage 0.55};
The mine Sqf file was written with help from users at armaholics
the problem with setDamge command is it damages, but if you step on another it sets it again to the same value. So I added the if,then,else statement..
It works in editor perfectly
It works in Lan mode after exporting to multiplayer perfectly
It will NOT work on a real server as an installed PBO, thats the issue.
My limited understanding of the difference between mulitplay and sinlgeplay editing is at an end with this. I have a GameLogic "server"
The problem with Server version is it always kills you outright..
Thanks for reading
A friend and I are creating a AP mine, I know there are alot of mine scripts about, but before you right this post off as a none searcher, this is different..
My friend wants a AP mine, that does not kill, only maims the first time.
So in order to create this I set a civillian on Utes airfield and placed 3 markers on airfield to denote mines..
This is SQS file
mine ="mineE" createVehicle [(getMarkerPos "mark01" select 0),(getMarkerPos "mark01" select 1),-0.08];
mine = createTrigger["emptyDetector",getPos mine];
mine setTriggerArea [1,1,0,false];mine setTriggerActivation ["any","present",false];
mine setTriggerStatements["this","[thislist select 0] execVM""mine.sqf""",""];
mine ="mineE" createVehicle [(getMarkerPos "mark02" select 0),(getMarkerPos "mark02" select 1),-0.08];
mine = createTrigger["emptyDetector",getPos mine];
mine setTriggerArea [1,1,0,false];mine setTriggerActivation ["any","present",false];
mine setTriggerStatements["this","[thislist select 0] execVM""mine.sqf""",""];
mine ="mineE" createVehicle [(getMarkerPos "mark03" select 0),(getMarkerPos "mark03" select 1),-0.08];
mine = createTrigger["emptyDetector",getPos mine];
mine setTriggerArea [1,1,0,false];mine setTriggerActivation ["any","present",false];
mine setTriggerStatements["this","[thislist select 0] execVM""mine.sqf""",""];
this is mine.SQF file
_unit = _this select 0;
_bomb2 = "GrenadeBase" createVehicle [(getPosASL _unit select 0),( getPosASL _unit select 1),-160];
if ((Damage _unit) >= 0.55) then {_unit setDamage 1} else {_unit setDamage 0.55};
The mine Sqf file was written with help from users at armaholics
the problem with setDamge command is it damages, but if you step on another it sets it again to the same value. So I added the if,then,else statement..
It works in editor perfectly
It works in Lan mode after exporting to multiplayer perfectly
It will NOT work on a real server as an installed PBO, thats the issue.
My limited understanding of the difference between mulitplay and sinlgeplay editing is at an end with this. I have a GameLogic "server"
The problem with Server version is it always kills you outright..
Thanks for reading