Jump to content
Sign in to follow this  
dealman

Insurgency Structure Definitions

Recommended Posts

Hiya,

Recently I've been working on porting Insurgency 1.50(Though with some changes) over to Invasion 1944 since I thought Neaville(Winter) is a map that would do well for Insurgency, even though the actual name "Insurgency" doesn't really make sense :P It has plenty of structures with interiors but I've come to a halt.

Now, I know how to get the classnames for the structures I want, but when I look at where they are defined for the mission - it leaves me confused. For example part of the definitions look like this;

["Land_House_K_1_EP1",[1,2,3,4],"Land_House_L_4_EP1",[6],"Land_House_C_5_V3_EP1",[0,2,6],"Land_House_C_12_EP1",[5,6],"Land_House_K_3_EP1",[9,1,2,3,5]]

I have absolutely no idea whatsoever what those numbers inside the arrays do. I'd love it if some smart individual with a kind soul out there could share some light regarding this as it would speed things up a whole lot!

Share this post


Link to post
Share on other sites

It's the Building position numbers for the cache to spawn on. If you spawn the ammo box on all positions in a building it's doesn't work for all - spawns mid air, sticks through wall etc so they have to be defined.

This will place a cache on each pos so you can see the results (if buildings in I44 work that way???):

_house = nearestBuilding player;
_m=0;
while { format ["%1", (_house) buildingPos _m] != "[0,0,0]" } do {_m=_m+1};

for "_i" from 0 to _m do
{
_cache = "GuerillaCacheBox_EP1" createVehicle (getPosATL player);
sleep 0.5;
_cache setPos (_house buildingPos _i);
};

Edited by Mattar_Tharkari

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×