nindall
Member-
Content Count
39 -
Joined
-
Last visited
-
Medals
Everything posted by nindall
-
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'.
-
Button image in description.ext
nindall replied to Pennywise's topic in OFP : MISSION EDITING & SCRIPTING
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"; }; }; -
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'?!
-
Who says so? What the hell did he think would happen?!
-
Check out the BI Wiki comRef! Specifically the setMarkerColor command.
-
player addMagazine "LAWLauncher"; does not work!
nindall replied to MulleDK13's topic in OFP : MISSION EDITING & SCRIPTING
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? -
player addMagazine "LAWLauncher"; does not work!
nindall replied to MulleDK13's topic in OFP : MISSION EDITING & SCRIPTING
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" -
object returned as string!?
nindall replied to combat-agent's topic in OFP : MISSION EDITING & SCRIPTING
<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'. -
..or better yet, subject to control orders.
-
Yep, using setPos! (I guess you knew!) What is your code?
-
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!
-
1. Either a land waypoint or the land command - 2. Don't really know, but I think it involves playMove!
-
<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.
-
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).
-
I want to keep on playing, not die!
nindall replied to zootso's topic in OFP : MISSION EDITING & SCRIPTING
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. -
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!
-
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!
-
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.
-
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.
-
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.
-
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}"; }; }; };
-
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.
-
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.