Jump to content

nindall

Member
  • Content Count

    39
  • Joined

  • Last visited

  • Medals

Everything posted by nindall

  1. nindall

    The BBC

    It relly gets to me when they ask for, and read out, the general public's opinions! 'Audience participation' has it's places,.. but the news isn't one of them!
  2. nindall

    Political Change

    What about WW2? Vietnam? Voluntneers? Draft? Everything isn't Iraq. It's an exception. The following is taken from - http://www.ppu.org.uk/learn/infodocs/st_conscription_l.html A little history about conscription in the UK with an emphasis on provisions for 'conscientious objection'.
  3. You could use a blank button with a picture placed behind. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class RscPicture { access=3; type=0; idc=-1; style=48; colorBackground[]={0,0,0,0}; colorText[]={1,1,1,1}; font="tahomaB24"; sizeEx=0; }; class RscButton { access=3; type=1; style=2; w=0.16; h=0.06; colorText[]={0.08,0.08,0.12,1}; font="tahomaB24"; sizeEx=0.02; default=0; soundPush[]={"ui\ui_ok",0.2,1}; soundClick[]={"",0.2,1}; soundEscape[]={"ui\ui_cc",0.2,1}; }; class ButtonPic { idd=-1; movingEnable=false; controlsBackground[]={"Pic"}; controls[]={"Button"}; class Pic: RscPicture { idc=-1; x=0.475; y=0.475; w=0.05; h=0.05; text="ismg.paa"; }; class Button: RscButton { idc=-1; x=0.45; y=0.45; w=0.1; h=0.1; text=""; action="closeDialog 0"; }; };
  4. nindall

    The Middle East part 2

    So using cluster bombs isn't illegal! Targeting them, like any indiscriminate weapon, near civilians is. What about the Fourth Geneva Convention 'for the Protection of Victims of War'?!
  5. nindall

    The Middle East part 2

    Who says so? What the hell did he think would happen?!
  6. nindall

    War against terror

    Link Good news!
  7. nindall

    markers and colors

    Check out the BI Wiki comRef! Specifically the setMarkerColor command.
  8. hmmm, i can't see any errors in your script then! After the script has executed does the ammo show up in the 'gear' section of the notepad?
  9. You're passing a string to the script - <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"law" exec "buy_magazine.sqs" then trying to access it as an array - <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_magazine = _this select 0; You can either change the first line of your script to - <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_magazine = _this or probably a better option (To make it easier for others to understand/use.) pass the arguments to the script in an array - <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">["law"] exec "buy_magazine.sqs"
  10. nindall

    object returned as string!?

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_p = format["swag%1",rWagonname] [_p] exec "/scripts/supplycheck.sqs" Switching these two lines around should work. To check if the unit is alive you can use either '!(alive _1)' or 'getDammage _1 == 1'.
  11. nindall

    War against terror

    ..or better yet, subject to control orders.
  12. nindall

    Setpos on a trigger?

    Yep, using setPos! (I guess you knew!) What is your code?
  13. nindall

    dead group check

    You could use count and units... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">? count UNITS groupName == 0 : some command; Exitor... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">? count UNITS group unitName == 0 : some command; Exit Not that I know of, but it does get harder to spot mistakes!
  14. nindall

    2 Quick Questions

    1. Either a land waypoint or the land command - 2. Don't really know, but I think it involves playMove!
  15. nindall

    Camcreatean object

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">object = "Type" camCreate Position object setDir 90 camCreate returns the object it created. The var object is like a name set in the editor.
  16. nindall

    Laser Lock

    As UNN said (AFAIK!) this isn't possible from within an addon in OFP (C'mon Armed Assault!), but in mission editing terms... When someone fires a LD an invisible object is created at the point where is hits the ground. Using a trigger you can detect if one of these is present and then assign a variable to it. Size:- Big as map Activation:- Anybody/Present/Repeatedly Condition:- "LaserTarget" countType thisList > 0 OnActivation:- {Call format ["LaserTarget%1 = _x", "LaserTarget" countType [_x]]} forEach thisList; LaserTarget = true OnDeactivation:- LaserTarget = false So when the first person fires a LD the variable LaserOn becomes true and the variable LaserTarget1 is the laser dot. Being an object you can use commands like getPos and nearestObject on it. You can replace the object type "LaserTarget" with "LaserTargetW", "LaserTargetE" or "LaserTargetG" to distinguish between sides (Haven't tested civilians).
  17. It sounds like your comp is set to 'Hide extensions for known file types'. When you create a new text document is it called Untitled or Untitled.txt? If it's just Untitled - 1) From the 'Tools' menu (In any folder.) click 'Folder Options...' 2) Click the 'View' tab and in the Advanced Settings look for 'Hide extensions for known file types' and make sure it's not selected. I'm not 100% sure if that's your problem but I had trouble with this when I started scripting.
  18. nindall

    Foreign Language

    English & German are definently more alike. I've heard Russian is one of the most difficult languages to learn. I'm interested though, why between Russian & German? <s>I would have thought USAF would want more Arabic speakers?</s> Edit: A'ha! Germany or Russia would be more a likely base for the air force than Baghdad or Kabul!
  19. nindall

    Car running on water?

    10 years doesn't leave you much time for development! What about transporting, storing and distributing your hydrogen? Don't forget you need people with hydrogen powered cars/generators/boilers to sell it to!
  20. nindall

    Car running on water?

    I'm very intriged by their 'very unique electrolysis process', as I didn't think there was currently any way to do this efficiently enough.
  21. nindall

    Helicopters

    Oh, and a friendly pointer. I think your sig exceeds the limit. The sig rules are at the bottom of the Forum Rules thread, which is pinned to each board.
  22. nindall

    Helicopters

    Have you got a 'get out' waypoint for the squad synchronized with the 'transport unload' waypoint. Thinking about it you shouldn't need to use the land command, just waypoints and perhaps triggers.
  23. nindall

    Adding Init lines to configs?

    I thought this was a good example, from Kegetys fwatch.pbo - <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgVehicles { class All {}; class Logic : All {}; class KEG_fwatch_logic : Logic { displayName = "Fwatch Check Logic"; class EventHandlers { init = "_this exec {\fwatch\init.sqs}"; }; }; };
  24. nindall

    Helicopters

    From the official comRef (Which you can get here) - .......... helicopter land mode Operand types: helicopter: Object mode: String Type of returned value: Nothing Description: Force helicopter landing. Landing mode may be "LAND" (complete stop), "GET IN" (hovering very low, for another unit to get in), "GET OUT" (hovering low,for another unit to get out) Example: cobraOne land "LAND" .......... I think you want "Get Out" in this instance.
  25. nindall

    USA Politics Thread - *No gun debate*

    Sorry to get semantic, but AFAIK you live in a republic not 'a democracy'! Reminded me of a quote from George Orwell- Knowing the source and context of any article is vital to understanding (even believing!) it, therefore, IMO linking is essential. I don't mind you using any media outlet, if you state the source and link to the article.
×