Forum Jump :

Author Message


Posts: 2
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2013-06-13 23:36        
     
I am trying to make units eject over a certain area. Someone made a script for that. In this script I have a group. his init line is set to group1=group this
there is a helicopter that they get into.
they fly to a waypoint and on said waypoint is written this in the init line:
nul = [group1] execVM "groupEject.sqf";
i have a text file named groupEject.sqf located in here:
C:\Users\myusername\Documents\ArmA 2 Other Profiles\myprofilename\UserSaved\missions\awesomeinfil.Chernarus
i have also tried putting it in here:
C:\Users\myusername\Documents\ArmA 2 Other Profiles\myprofilename\missions\awesomeinfil.Chernarus

when the units get to the waypoint where they are supposed to eject, an error pops up: script groupEject.sqf not found

here is the saved script, if it makes a difference:

if (isServer) then
{
_grp = _this select 0;

sleep (random 3);

{
unassignVehicle (_x);
(_x) action ["EJECT", vehicle _x];
sleep 0.4;
} foreach units _grp;
};


Author Message


Posts: 1525
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2013-06-13 23:58        
     
It looks correct but I have had a little too much too drink.

Make sure it's not saving it as a .txt file, you may need to go to windows folder options/ view and untick Hide extensions for known file types


Advertisement


Author Message


Posts: 2
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2013-06-14 03:35        
     
thank you. that was it ^. God i feel dumb