Thank you all for proclaiming your profusions.
I like the thought of teaching, some don't share their knowledge, and say learn it for yourself ,,,,, its better for you,,,, well blab la ba, I am willing to share anything to help authors make a good mission as I enjoy seeing gamers build a first mission from a 3 to a 6 or 7 score in efpec. To me a good mission is the one that you can't stop playing, or thinking about what you are doing in the mission overwhelms you. Tricks, playing with the gamer are most unique in a mission, some authors do it well. This always gets my attention! I love the fact that setdamage can kill any unit,,,, lol ha ha ha the power!
I call scripting tricking the game, using the trigger to get what you want! It seem to me that there is always two ways to get the same result in scripting, at least. You just have to find the one that works in your mission and its concept.
I just lost all my scripting crap on my pc as a formatted pc with lost info,,,,,,,..... Damn I hate it when I don't back up!!!!! But here is some crap that might be useful to some one ................keep in mind not all may be the right syntax as I have copied some of it from watching the "who"s on line" at the bottom of the forums
?
unit xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Bravo = group this; this setGroupId ["Bravo", "GroupColor0"]; this setbehaviour "SAFE"; ({[_x] execvm "stuckcheck.sqf"} forEach units yourGroup)
removeAllWeapons this;
this addWeapon "Binocular"; camUseNVG true;
this addMagazineCargo ["1Rnd_HE_M203",8]; this addWeaponCargo ["m16a4_acg_gl",1]; this addWeaponCargo ["MP5SD",1]; this addMagazineCargo ["30Rnd_9x19_MP5SD",6]; this addMagazineCargo ["200Rnd_556x45_M249",5]; this addWeaponCargo ["M249",1]; this addWeaponCargo ["M16A2GL",1];
this setUnitPos "MIDDLE";
this addMagazineCargo ["PipeBomb",2];
this addWeapon "Binocular";this addWeapon "NVGoggles";
this addMagazine "PG7V" ; this addWeapon "RPG7V" ;
!(alive etank)
BOMB1 = "Bo_GBU12_LGB" createVehicle getpos bcar
"smokeShellRed" camCreate getPos helo
shellsOnBoard = 24; this addaction ["Drop smoke", "dropSmoke.sqs"]
this setBehaviour "CARELESS";
flyInHeight 0; this setBehaviour "CARELESS"; this setSpeedMode "NORMAL";
this moveInCargo Heli1;
this disableAI "MOVE"; this setBehaviour "AWARE"; this doWatch H1;
unitname domove getpos position
unitname domove getmarkerpos "markername"
this setPos [getPos this select 0, getPos this select 1, 14.7]
this addEventHandler ["KILLED", { ((getPos (_this select 0)) nearestObject 346577) setDamage 1 } ];
this addEventHandler ["KILLED", { player sideChat "Sir, I think we just killed a civilian!" }];
Bravo = group this; this setGroupId ["Bravo", "GroupColor0"]; this setbehaviour "SAFE"; ({[_x] execvm "stuckcheck.sqf"} forEach units yourGroup)
triggers xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
{(group _x) leaveVehicle _x} forEach thislist
this && ((soldiername1 distance chopper) < 10) xxxx condition
soldier1 action ["eject",choppername]
actionname = player addaction ["action", "script.sqs"]
then to remove the action, write the following in the 'on deactivation' field of the trigger:
player removeaction actionname
[West,"HQ"]
Smoke1="Smokeshell" createVehicle [(getPos Name1 select 0),( getPos Name1 select 1), 10]]
condition: Object ID# getdammage > .8
activation: whatever you want
player addEventHandler ["killed",{_this exec "playerKilled.sqs"}]
grenade1 = "GrenadeHand" createVehicle (position Trigger1)
{_x moveInCargo Heli1} forEach Units Grp1
!canMove tank && (player distance tank > 250)
"1" objStatus "DONE"; radioWest sideChat "HQ, Night Frog here.!"; end=true;
!canMove tank
condition : this
on activation : {_x addeventhandler ["fired", {hint "wham!"}]} foreach thisList
obj xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"0" objStatus "DONE"; obj0=true;
mis xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
playMusic ["Track1", 30] (Plays Track1 from Second 30)
10 fadeMusic 1