Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hh = ds_map_create()//hout
- vv = ds_map_create()//vis
- ss = ds_map_create()//steen
- gg = ds_map_create()//graven
- ll = ds_map_create()//bouwen
- nn = ds_map_create()//niks
- bb = ds_map_create()//bezet
- global.teamxx = 1
- with (obj_eskimo)
- {
- if (team = global.teamxx)
- {
- if x = tarx
- {
- switch(state)
- {
- case 1:with obj_intelligence {ds_map_add(hh,instance_id,instance_id)}//houthakken
- break;
- case 2:with obj_intelligence {ds_map_add(vv,instance_id,instance_id)}//vissen
- break;
- case 3:with obj_intelligence {ds_map_add(ss,instance_id,instance_id)}//steenhakken
- break;
- case 4:with obj_intelligence {ds_map_add(gg,instance_id,instance_id)}//graven
- break;
- case 5:with obj_intelligence {ds_map_add(ll,instance_id,instance_id)}//bouwen
- break;
- default:with obj_intelligence {ds_map_add(nn,instance_id,instance_id)}
- break;
- }
- }
- else
- {
- with obj_intelligence {ds_map_add(bb,instance_id,instance_id)}
- }
- }
- }
- hhh = ds_map_size(hh);
- vvv = ds_map_size(vv);
- sss = ds_map_size(ss);
- ggg = ds_map_size(gg);
- lll = ds_map_size(ll);
- nnn = ds_map_size(nn);
- bbb = ds_map_size(bb);
- if nnn > 0
- {
- nnid = (ds_map_find_value(nn,(ds_map_find_first(nn))))
- with (nnid)
- {
- tarx = nearest_res(x,2)
- }
- }
- ttt = hhh + vvv + sss + ggg + lll + nnn + bbb
- ds_map_destroy(hh);
- ds_map_destroy(vv);
- ds_map_destroy(ss);
- ds_map_destroy(gg);
- ds_map_destroy(ll);
- ds_map_destroy(nn);
- ds_map_destroy(bb);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement