Jump to content

Scatty85

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About Scatty85

  • Rank
    Rookie
  1. Ah thats great thanks so much! I'm just about getting to grips with this scripting language, not done any scripting for a looong time! :D
  2. Hi, I'm new to this so apologies if this is a simple problem. I'm messing about with scripting and have created the below scrip, which works to a degree. The code is in a .sqf file and called by a trigger. The waypoint is added but the waypoint line runs from the very bottom left of the map to the correct location, I can’t work out why the waypoint is not running from the group. Also the group does not respond to the waypoint. Thanks for any help! Scott private "_unt"; private "_grp"; _grp = createGroup west; for "_i" from 0 to 3 do { sol = round(random 3); str_sol = ""; switch (sol) do { case 1: { str_sol = "USMC_Soldier_AR"; }; case 2: { str_sol = "USMC_Soldier_MG"; }; case 3: { str_sol = "USMC_Soldier_Medic"; }; default { str_sol = "USMC_Soldier"; }; }; _unt = _grp CreateUnit [str_sol,getMarkerPos "red_1",[],25,"FORM"]; }; [player] join group _unt; wp1 = group _unt addwaypoint [(getmarkerpos "red_sd"),100]; wp1 setwaypointtype "DESTROY"; wp1 setwaypointBehaviour "AWARE"; hint "Reinforcements have arrived!"; Image postimage.org/image/m30wwrm7l/
  3. Scatty85

    Basic guide??

    Ok I've read that and got the basic idea but where do I write the script? I'm trying to write a basic IED script. Ie man gets near a car and it blows up. created a player created a car and named it bombcar created a trigger which is 10m x 10m circle around the car In the On Act field I've tried to write bomb = createVehicle "Bo_GBU12_LGB" getpos bombcar; So my understanding is that when the man gets within 10m of the car the script will create a bomb at the bombcars position. But I keep getting "missing ;" from the editor?? This makes no sense?!
  4. Hi, Apologies for this noob question but I cant seem to find a "basic guide" to scripting. I've been looking on this forum and I'm getting pretty frustrated that all the info seems to be aimed at people who seem to already know what they are doing and not someone like me who doesn't know where to write the script let alone try anything out. Surly you scripting geniuses weren't born knowing this information?? Cheers.
×