Jump to content

beastxjason

Member
  • Content Count

    12
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About beastxjason

  • Rank
    Private First Class
  1. beastxjason

    please help me out with a script?

    Can you lay it out for me I am going wrong with the loadout. I think I discovered some of my first issue. I was trying to call a local variable at first via the trigger act box and it says that wont work so changing the _x should remedy that. Ideally a script would be the way to go then simply trigger it via a trigger. Something is wrong with the way I was shown to do loadouts I think. I am not sure if the "..." are suppose to be in there. I also see that everybody tends to type out their code differently. I see some examples with wierd spacing but it looks clean then I see other examples with no spacing. I am determined to get this to work. I have learned a lot.
  2. beastxjason

    please help me out with a script?

    Something is wrong here because without this they spawn and attack etc, this screws it up. {removeAllWeapons _x; removeAllItems _x; ... x addHandgunItem "muzzle_snds_L"; x addWeapon "Laserdesignator_02"; x addItemToBackpack "16Rnd_9x21_Mag";}; x addWeapon "srifle_LRR_camo_F"; x addPrimaryWeaponItem "optic_DMS"; x addWeapon "hgun_Rook40_F"; x addHandgunItem "muzzle_snds_L"; x addWeapon "Laserdesignator_02"; x forceAddUniform "U_C_Poor_1"; x addItemToUniform "FirstAidKit"; x linkItem "ItemMap"; x addVest "V_PlateCarrierGL_rgr"; x addHeadgear "H_Bandanna_blu"; x addGoggles "G_Bandanna_beast"; ... }
  3. beastxjason

    please help me out with a script?

    Ya this is all going onto a trigger's init box. I do not have a group leader on the editor I was under the impression the spawn function would give me 6 random guys and all I had to do was give them all the same loadout to wear. So far all I can do is get the guys to spawn without my loadout using just the example on the bis page. I gave them the attack player wp and they began to move towards the player. Thank you for the simple clear explanation on the "_" The mission is just a mp hosted mission. Ya I have been using just the error box in editor was not aware there was a log created. This all started because I thought I could make this easily spawn 5 guys wearing my loadout. Not so easy. [getPos aPos, EAST, 5] call BIS_fnc_spawnGroup I only wasted a few days trying to make this work. If I have to define a guy or leader etc this is out of my league and I misunderstood the spawn function command.
  4. beastxjason

    please help me out with a script?

    that shouldnt be ike that odd paste maybe? was from this linkItem "ItemMap"; this linkItem "ItemCompass"; this linkItem "I_UavTerminal"; was changing to the _x linkitem "itemMap" I got my loadout using arsenal which was comment "Enemy Gang"; comment "Remove existing items"; removeAllWeapons this; removeAllItems this; removeAllAssignedItems this; removeUniform this; removeVest this; removeBackpack this; removeHeadgear this; removeGoggles this; comment "Add containers"; this forceAddUniform "U_C_Poor_1"; this addItemToUniform "FirstAidKit"; this addVest "V_PlateCarrierGL_rgr"; for "_i" from 1 to 2 do {this addItemToVest "HandGrenade";}; this addItemToVest "Chemlight_red"; for "_i" from 1 to 3 do {this addItemToVest "7Rnd_408_Mag";}; this addBackpack "B_FieldPack_cbr"; for "_i" from 1 to 2 do {this addItemToBackpack "16Rnd_9x21_Mag";}; this addItemToBackpack "30Rnd_9x21_Mag"; for "_i" from 1 to 14 do {this addItemToBackpack "7Rnd_408_Mag";}; this addHeadgear "H_Bandanna_blu"; this addGoggles "G_Bandanna_beast"; comment "Add weapons"; this addWeapon "srifle_LRR_camo_F"; this addPrimaryWeaponItem "optic_DMS"; this addWeapon "hgun_Rook40_F"; this addHandgunItem "muzzle_snds_L"; this addWeapon "Laserdesignator_02"; comment "Add items"; this linkItem "ItemMap"; this linkItem "ItemCompass"; this linkItem "I_UavTerminal"; comment "Set identity"; this setFace "WhiteHead_16"; this setSpeaker "Male01ENG"; [this,"GryffinRegiment"] call bis_fnc_setUnitInsignia;
  5. ok I have far too many hrs invested in this. What I want to do. Spawn 6 guys I want them to wear my loadout and look the same (gang) How I want this to work-Trigger. I want the player to trigger an ambush. What I have from my lack of knowledge. This is what I did might be completely wrong but I get a blank error in editor so I have no idea what I am doing wrong _my_group = [getMarkerPos "gang", EAST, 5] call BIS_fnc_spawnGroup; {removeAllWeapons _x; removeAllItems _x; ... _x addHandgunItem "muzzle_snds_L"; _x addWeapon "Laserdesignator_02"; _x addWeapon "srifle_LRR_camo_F"; _x addPrimaryWeaponItem "optic_DMS"; _x addWeapon "hgun_Rook40_F"; _x addHandgunItem "muzzle_snds_L"; _x addWeapon "Laserdesignator_02"; _x forceAddUniform "U_C_Poor_1"; _x addItemToUniform "FirstAidKit"; _x linkItem "ItemMa_x linkItem "ItemCompa_x linkItem "I_UavTerminal"; _x addVest "V_PlateCarrierGL_rgr"; _x addHeadgear "H_Bandanna_blu"; _x addGoggles "G_Bandanna_beast"; ... } foreach units _my_group; // _x is a local variable in {...} forEach array code _wp = _my_group addWaypoint [getpos player,0]; _wp setWaypointType "MOVE"; // or "SAD" _wp setWaypointBehaviour "COMBAT"; // see all possibilities on BIKI, behavior, combat mode, speed... 0 = [_wp,_my_group] spawn {while {alive player && (count units (_this select 1)) >0} do { sleep 2; (_this select 0) setWaypointPosition [getpos player,0]}}; So to my understanding I am spawning a group and telling them to attack player. What I do not understand is why this doesnt work. this a 3 player co-op mission. I am really losing my hair on this. I know I can simply place units down and put the loadout in the init but i am going to need so many of these guys they would bog server down. So bottom line is 1: how should this code look and will it even work or should I abandon all hope 2: Can you illustrate where i went wrong and show me the correct layout in the trigger init so I can move onto the next hurdle? Thanks for your time. This is pretty hard at first and I know one of you is just laughing at my feeble attempt haha
  6. beastxjason

    Someone wrote a thesis on ARMA 3

    the arma is strong with this one
  7. beastxjason

    ArmA3 Classnames - no discussions

    this makes life easier
  8. they let the intern decide where to put it :P
  9. beastxjason

    Post New Thread Button missing?

    ya this is a bit silly. was wondering what was going on thanks
  10. beastxjason

    mission images into a mod

    look at what haleks did with ravaged mod.
  11. cant make an intro for multiplayer in intro section. Has to be in mission section for mp.
×