Hello everyone, I m working in a very simple script to allow Epoch players to surrender and drop their reapons on the ground.
I have managed to make it work in a SP mission with the following code:
_myStuff = weapons player;
_myMags = magazines player;
// Drop all your stuff on ground.
if (count (_myStuff+_myMags)>0) then
{
_box = createVehicle ["groundWeaponHolder", player modelToWorld [0,0.8,0], [], 0.5, "CAN_COLLIDE"];
_box setDir floor (random 360);
{
_box addWeaponCargoGlobal [_x, 1];
player removeWeapon _x;
} forEach _myStuff;
{
_box addMagazineCargoGlobal [_x, 1];
player removeItem _x;
} forEach _myMags;
player reveal _box;
};
The problem comes when I try to make it work in the dedicated epoch server. After searching I found that addAction is not allowed by the epoch system, so my question is: Is there a way to execute this script pressing a key?
Thanks for your help, and excuse me if its a noobish question, I have been looking quite a bit now, and cant find a way to make this work.
Question
Galian
Hello everyone, I m working in a very simple script to allow Epoch players to surrender and drop their reapons on the ground.
I have managed to make it work in a SP mission with the following code:
The problem comes when I try to make it work in the dedicated epoch server. After searching I found that addAction is not allowed by the epoch system, so my question is: Is there a way to execute this script pressing a key?
Thanks for your help, and excuse me if its a noobish question, I have been looking quite a bit now, and cant find a way to make this work.
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now