peppy
Member-
Content Count
91 -
Joined
-
Last visited
-
Medals
Everything posted by peppy
-
Detecting if an object exisits?
peppy posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I am looking for a way to detect if an object exists, and if it does to delete it. For example, I spawn a helo, and later on in a script I want it to detect if it exists and if so delete it. I have searched to no avale. -
{Spooky} Simple Copy Stance / Set Mode / Set Formation
peppy posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
... -
{Spooky} Simple Copy Stance / Set Mode / Set Formation
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
.. -
{Spooky} Simple Copy Stance / Set Mode / Set Formation
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
.. -
Problem with 2D Editor and positions not being equal when a script is ran
peppy replied to yokai134's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
.. -
{Spooky} Simple Copy Stance / Set Mode / Set Formation
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
.. -
..
-
Filtrating them ARRAYS!
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
.. -
{Spooky} Simple Copy Stance / Set Mode / Set Formation
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
... -
Morten's ArmA Dialog Designer
peppy replied to MulleDK19's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
This is an interesting tool, but the registration MUST be removed, there is ability no REASON for you to know WHO uses your App, you could simple ask people to join your website, or your forums. I would suggest REMOVING this CRAP ASAP!. not only that this application is DEFINELTY not WORTHY of registering as it is not even in a class of application to be registered!, again for what? you don't use certificates or any type of security. So essentially it leads to one thing, that it is NOT necessary and a TOTAL turn off! Ask people to participate RATHER then FORCE a Bullshit Registration! Other then that I say All the Power to ya! Cheers! -
..
-
Spooky Fast Step Recorder
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
.. -
Spooky Fast Step Recorder
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
.. -
{Spooky} Simple Copy Stance / Set Mode / Set Formation
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
... -
Spooky Fast Step Recorder
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
.. -
Help with an MP cutscene for intro
peppy replied to spookygnu's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
what was your resolution, as that at times is more important then the issue.. can you post plz? I was wondering how. -
Spooky Fast Step Recorder
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
.. -
spawn and delete group if no more threats
peppy replied to _qor's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
http://community.bistudio.com/wiki/deleteGroup ? -
Is limiting inputAction possible?
peppy replied to NightIntruder's topic in ARMA 2 & OA : ADDONS - Configs & Scripting
not sure exactly what your asking? look at.. A: http://community.bistudio.com/wiki/setVariable B: http://community.bistudio.com/wiki/getVariable Or rephrase the questions, as it maks no sense. -
this is a simple land anywhere script, it will do just that, land any helo and where. Sample Mission. copy & past to a notepad, save in a folder with any name.Chernarus, in your missions folder. Note This Sample shows the Helo Landing on a Dock. version=11; class Mission { addOns[]= { "chernarus", "CAAir" }; addOnsAuto[]= { "CAAir", "chernarus" }; randomSeed=6634123; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=4; minute=20; }; class Groups { items=2; class Item0 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={7070.6265,6.0203533,2189.0115}; azimut=281.58401; special="NONE"; id=0; side="WEST"; vehicle="USMC_Soldier_SL"; player="PLAYER COMMANDER"; leader=1; rank="LIEUTENANT"; skill=0.82744098; }; }; }; class Item1 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={6810.5132,0.023219422,2178.2158}; azimut=81.080101; special="FLY"; id=1; side="WEST"; vehicle="MH60S"; leader=1; skill=0.60000002; text="Helo1"; }; }; class Waypoints { items=1; class Item0 { position[]={7024.8413,6.0199947,2185.0615}; expActiv="Null = [Helo1,7] ExecVM ""Lander.sqf"";"; class Effects { }; showWP="NEVER"; }; }; }; }; class Sensors { items=1; class Item0 { position[]={6995.0313,6.0193253,2181.4912}; activationBy="MEMBER"; interruptable=1; type="SWITCH"; age="UNKNOWN"; idVehicle=1; class Effects { }; }; }; }; class Intro { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=9063056; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; }; }; class OutroWin { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=9776974; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; }; }; class OutroLoose { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=1771663; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; }; }; Mission Sample x2 Helo landing on top Building. (save in folder of any name.utes) version=11; class Mission { addOns[]= { "CAAir", "utes" }; addOnsAuto[]= { "CAAir", "utes" }; randomSeed=12659731; class Intel { startWeather=0.39999998; forecastWeather=0.25; year=2008; month=10; day=11; hour=2; minute=20; }; class Groups { items=2; class Item0 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={3568.0347,28.121769,3649.479}; azimut=-22.595522; id=0; side="WEST"; vehicle="USMC_Soldier"; player="PLAYER COMMANDER"; leader=1; skill=0.60000002; }; }; }; class Item1 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={3534.8264,31.879457,3878.99}; azimut=174.58076; special="FLY"; id=1; side="WEST"; vehicle="MH60S"; leader=1; skill=0.60000002; text="Helo1"; }; }; class Waypoints { items=1; class Item0 { position[]={3517.9788,19,3580.5928}; class Effects { }; showWP="NEVER"; }; }; }; }; class Sensors { items=2; class Item0 { position[]={3495.4089,18.930267,3566.9727}; a=0; b=0; activationBy="ALPHA"; repeating=1; interruptable=1; age="UNKNOWN"; expActiv="Null = [Helo1, 5, 270, 10] ExecVM ""Lander2.sqf"";"; class Effects { }; }; class Item1 { position[]={3517.9495,19,3630.7354}; angle=-90.419296; activationBy="VEHICLE"; interruptable=1; age="UNKNOWN"; idVehicle=1; expActiv="Null = [Helo1, 5, 270, 10] ExecVM ""Lander2.sqf"";"; class Effects { }; }; }; }; class Intro { addOns[]= { "utes" }; addOnsAuto[]= { "utes" }; randomSeed=14708003; class Intel { startWeather=0.40000001; forecastWeather=0.25; year=2008; month=10; day=11; hour=14; minute=20; }; }; class OutroWin { addOns[]= { "utes" }; addOnsAuto[]= { "utes" }; randomSeed=7429690; class Intel { startWeather=0.40000001; forecastWeather=0.25; year=2008; month=10; day=11; hour=14; minute=20; }; }; class OutroLoose { addOns[]= { "utes" }; addOnsAuto[]= { "utes" }; randomSeed=15402884; class Intel { startWeather=0.40000001; forecastWeather=0.25; year=2008; month=10; day=11; hour=14; minute=20; }; }; The Script. Copy and past to a notepad, save as lander2.sqf _heli = _this select 0; // -- Selected Helo _duration = _this select 1; // -- Time to Rotat desierd direction on landing. _dirEnd = _this select 2; // The Direction Facing on Landing. _Heliz = _This Select 3; // The Z value or Height of Touch Down. _Helip = GetPos _Heli Select 2; _dirSTart = direction _heli; _dirDiff = (_dirStart - _dirEnd) / _duration; DoStop _heli; sleep 2; // Changing this Causes some intresting Sideways flying! Critical for Preicition landings. _timeNow = time; _timeFinal = _timeNow + _duration; while {(time) <= _timeFinal} do { _i = (time) - _timeNow; _heli setdir (_dirStart - _dirDiff * _i); //hint str [_i,_dirDiff]; // Debig Info sleep 0.01; while {_Helip > _Heliz} do {_Helip = _Helip -1; _Heli Flyinheight _Helip;}; }; waitUntil {position _heli _Helip == _Heliz}; _Heli action ["engineOff", _Heli]; exit; Enjoy.. PS: its a Newbee script, cuse I am a newbee! cheers.
-
Animated but not moving?
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
unassignVehicle Spk0; Sleep .1; Spk0 Action ["GETOUT",Spook]; Sleep .1; Spk0 DisableAI "ANIM"; Spk0 PlayMoveNow "AmovPercMwlkSlowWrflDf"; Sleep 1.8; Spk0 PlayMoveNow "AmovPercMwlkSlowWrflDfl"; Sleep 2; Spk0 PlaymoveNow "AmovPercMwlkSlowWrflDl"; Sleep 2; Spk0 PlaymoveNow ""; Spk0 SetBehaviour "AWARE"; Spk0 EnableAI "ANIM"; Spk0 SetUnitPos "Middle"; Sleep 1; unassignVehicle Gn3; Gn3 Action ["GETOUT",Spook]; Gn3 DisableAI "ANIM"; Gn3 PlayMoveNow "AmovPercMwlkSlowWrflDf"; Sleep 1.8; Gn3 PlayMoveNow "AmovPercMwlkSlowWrflDfr"; Sleep 2; Gn3 PlaymoveNow "AmovPercMwlkSlowWrflDr"; Sleep 2; Gn3 PlaymoveNow ""; Gn3 SetBehaviour "AWARE"; Gn3 EnableAI "ANIM"; Gn3 SetUnitPos "Middle"; this is a sample code, Spk0 and Gn3, are ejected from a helo on landing. They play there moves, then they just get up and move to a different position on their own!? Is there some kind of function that causes the AI to run to a pre-determined position on eject? And what if any are the best methods of playing the two sets of animation simultaneously, without effect the other, right now I am using Sleep, so that the animation will play for so long, before playing the next animation. -
okay I am using PLayNow, and I am noticing that allot of the time, the AI will play the Animation but will not actually move, as in cover ground. At the moment they basically run in one spot? I am confused, what would make them stick like that?
-
Animated but not moving?
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Spk0 SwitchMove "AmovPercMwlkSrasWrflDl"; Sleep 6; ---------- Post added at 08:24 PM ---------- Previous post was at 08:23 PM ---------- used playmove and playmovenow, it has worked befor, but for some reason they are just sitting there, annimation plays, but they dont move. -
Question about EH and Scripts
peppy replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I am sorry I have not posted UPdates, but I did fix the script errors, it was more of a rought idea rather then an actual script. I thank you vary much for your help, and the bit about the Hints, Perfect thank you agian!...