Jump to content

Gigan

Member
  • Content Count

    160
  • Joined

  • Last visited

  • Medals

Everything posted by Gigan

  1. Hello, I released GCam Rec Ver.1.0. GCam Rec can make a camera work in cutscene that can be referred in the mission editing. Download Features - Recording camera work - Previewing recorded scene - Editing recorded scene - Undoing edited scene - Saving editing scene - Generating camera work in cutscene Quick use with the demo mission 1. Launch "GCam Rec" in action menu. 2. Press "O" key to open Scene Editor and click "CopyAll" button. 3. Back to desktop, open "paste_from_clipboard.sqf" with powerful text/script editor and paste clipboard data. 4. Back to ARMA2, ends "GCam Rec" with press "Space" key. 5. Launch "Play Recorded File" in action menu. Creation finish :) Try to play it.
  2. Thank you for your use GCamRec. The unit to follow cannot be switched on the way. One camera working is one unit following. Please execute the made camera work file many times when you want to switch to some units. hd = [unit1] execVM "camerawork.sqf"; hd = [unit2] execVM "camerawork.sqf"; hd = [unit3] execVM "camerawork.sqf"; ... GCamRec operates only with "gcam_rec" folder. This folder is copied onto your mission folder. Write #include "gcam_rec\gcam_rec_component.hpp" to description.ext. And, it starts. hd = [unit] execVM "gcam_rec\gcam_rec.sqf"; I think that the most best script writing editor is squinit. http://www.armaholic.com/page.php?id=11817 In addition, there are some tools that do the support of writing the script. http://www.armaholic.com/page.php?id=10235 http://www.armaholic.com/page.php?id=13517 http://www.armaholic.com/page.php?id=4826 http://www.armaholic.com/page.php?id=7864 http://www.armaholic.com/page.php?id=8680
  3. It will be nice. Expected waiting for completion :)
  4. It is very interesting script :bigsmile: Camera altitude adjusted to ground level? It might adjust to sea level.
  5. Gigan

    cam scripts?

    @DesertJedi Thanks for your use my camera addon in ARMA1 :D There is a camera script for ARMA2. GCam 1.12 Armaholic Armedassault.info Main bugs were exterminated by ver1.12 and this camera development progressed to the level which does not have a problem in using this camera. GCam will be able to be used conveniently. Install 1. gcam_component.hpp and gcam.sqf or gcam_auto.sqf are put on the same directory in a mission folder. 2. A empty description.ext is created and #include "gcam_component.hpp" is written. 3. handle = [ Unit ] execVM "gcam(_auto).sqf"; is written and GCam performed.
  6. Hi, I have one question about mod command. I am performing fraction processing with the following formulas in script creation. Actual scripts are the following touch. There is an intention which this is storing a variable value into 0 to 360, and makes calculation of the future intelligible. However, it is not smart to put in the fraction processing which used the above IF sentences of two lines at every variable calculation. Then, I thought of the method of performing fraction processing using the mod command. It is the method of dividing a variable value by 360 and drawing the remainder. If it is this method, since a conditional sentence is not used and it ends with a single line, it is smart. I used the calc function of google and confirmed whether the calculation would be right. x = 30 mod 360 Answer 30, the result desired. x = 560 mod 360 Answer 200, the result desired. x = (-10) mod 360 Answer 350, the result desired. x = (-370) mod 360 Answer 350, the result desired. It is a result as all were assumed :) Then, I adopted this with my script. A result does not work :( When changes of a variable value were pursued, and a negative value was given, it turned out that results differ. x = (-10) mod 360 ...Answer is -10 x = (-370) mod 360 ...Answer is -10 The script described by the check of a result is the following. As for these, a result differs from google calc. Does a difference appear in the result of a calculation function by the difference in program language? Or is this a mistake in BI script? The result of google calc regards me as right. I desire is there.
  7. Thanks for the responds :) I had recognition that two mod commands exist. They are a mod operator and a mod function. In google calc, it is a mod function, a negative number is not treated, but, in BI script, it is a mod operator, a negative number is treated. Both of they are right. @F2k Sel It is likely to become somewhat complicated if it describes as a script. The result which I desire will not be obtained by a mod operator. I consider another method. Thanks for the proposal.
  8. Hi, There is one question about setWaypointStatements. I recognize it as this command being what performs some scripts, when a unit reaches a waypoint. The processing performed with this command seems to be script file specification. Then, if possible, I will want to describe direct processing instead of file specification. Although I conducted some experiments, it did not work. [_group, 1] setWaypointStatements ["true", hint "ok" ]; Failed. A script error message appears. [_group, 1] setWaypointStatements ["true", {hint "ok"} ]; Failed the same. [_group, 1] setWaypointStatements ["true", format["%1", {hint "ok"}] ]; Failed the same. [_group, 1] setWaypointStatements ["true", format["%1", hint "ok"] ]; "OK" appears irrespective of attainment to a waypoint. Since processing was performed at least, the last processing was tested by the variable next. _testvar = 0; [_group, 1] setWaypointStatements ["true", format["%1", _testvar = 1] ]; player sidechat format["%1",_testvar]; Processing is not performed and the error of a result appears. Can't direct description of the processing performed by this command be performed? Or if it is possible, I want to know it. Thanks.
  9. Slightly, it seems that a shadow is imperfect.
  10. Hello, I created one gadget script. http://www.mediafire.com/?djigmtj2h5d Description This script adds the barrier construction capability to player. The player which changed to a engineer copes with invasion of enemy ground troops. The player can specify object direction and can put it in order continuously on the map. Execution handle = [ "Land_HBarrier5", 10 ] execVM "qbc.sqf"; 1st argument : Object class name for putting. 2nd argument : Amount of objects for putting continuously. Supported objects which show to suitable marker size. H-barrier H-barrier (short) H-barrier cube H-barrier (large) Mouse and Key operation. Left Mouse Click : Put a Object Left Mouse Drag : Rotate a Object Left Ctrl : Undo Esc : Quit Construction Known bug The terminated that depends besides Esc key might occur. Try it :) thanks.
  11. Congratulation alpha release :bounce3: Cockpit is wonderful. Precise structure and fine characters, even if I look around the circumference, I cannot find the portion which thinks is dissatisfied. I think the quality of appearance as there being room being more scrupulous. It looks nice when F-117A is seen from a distance. However, if it approaches and it is looked at, it does not look to advantage well. A little more mat metallic material. By setup of material, you may can add a minute concavo-convex expression.
  12. It seems that you are making the recognition mistake for a while about script execution :) The value of an argument is passed only when a script is executed. Those values can be used only as initial value to a script. Also, "_runCondition" is a local variable. The value of "_runCondition" can be changed only within the script. A global variable must be used within a script and the value of the variable must be changed by a trigger to change a state from the trigger on mission. As the example which uses a global variable: "runCondition" is used instead of "_runCondition". In the trigger on mission, "runCondition" is used instead of "asdasd". As a fault , when a script uses a global variable, the flexibility of the script will be lowered.
  13. Nice one, more customizable :) I like that there was a line between units. When there is no it, group color forces the setup upon a user. 1) I think impossible. It seems to be unable to define a marker class in Description.ext. 2) I think that the necessity does not exist. Although it seems to a global variable that it is better to carry out, if a lot of variables are not treated, the influence which it has on performance is small. 3) Probably, there must be a variable specified as isnull at an object type. At the time, it cannot be judged whether "asdasdasd" is an object type. Supposing it uses correctly, In advance, it may be necessary to assign a object type null value. "asdasdasd = objnull". 4) I can't read question intention. 5) It may be good, if the unit movement speed is acquired and you make it reflected in a marker. But, since it will occupy the execution resource of a script more, it may not be so good when moving amount scripts simultaneously.
  14. If you want to change a searchlight to purpose angle, it can be attained by following a method with dowatch. unit init: angle = 45; dir = (getdir this); this doWatch [ (getpos this select 0) + 10 * (sin dir) * (cos angle), (getpos this select 1) + 10 * (cos dir) * (cos angle), 10 * (sin angle) ]; the angle variable is changed to the target angle.
  15. An error is shown by the test. This error is based on 1) and 2). It does not come out in 3). Also, the error is not displayed in new script :) PS: Since I only offered a small idea to you, my description is unnecessary ;)
  16. Gigan

    Vehicle towing script

    Very interesting script :bounce3: I found the one bug in 0.1b. If a tractor becomes an acute angle, it will continue being pushed from succession vehicle and handling will become impossible.
  17. It seems that you incorrect-recognize the corresponding parenthesis.
  18. Gigan

    minelayer

    I think that mining cannot be attained without scripting.
  19. It may be improved if atan2 is used instead of atan. atan2 protects 0 division.
  20. Nice script :) The visibility of a unit to pursue increases. 0 division error is caused in script starting.
  21. Gigan

    cam scripts?

    If there is a command which judges whether a player is admin, It can make it. But, I do not grasp such a command. Probably it can be attained technically. A password attestation script is created and camera is launched from there.As a procedure, Characters input dialog and keystroke event handler are treated, and the dialog which enters password is created. It judges whether it is in agreement with the character which setup beforehand the character inputted by player, and camera is launched only when in agreement. This system is complicated, and by the time it is completed, it will need many work. This method could be attained more simply :)A trigger is put on the area which adds action to a player. in init.sqf player_in = false; The placed trigger: On Act. if (!player_in) then { actid1 = player addaction [ "Launch GCam", "gcam_follow.sqf", [player] ] }; player_in = true; The placed trigger: On Dea. player removeAction actid1; player_in = false; If a player trespasses upon a trigger area action will be added, and action will be lost if it comes out from the area.
  22. Yes, it should grasp, when those commands are used. Also, since this command is treated on a script, I thought that this command was more convenient if it has the mechanism in which a value can be passed. for example, _testvar = 1; [_group, 1, [_testvar]] setWaypointStatements ["true", "_value = _this select 0; ..." ]; Of course, such usage cannot be done :rolleyes: In the case of the spawn command, such usage can do. [_testvar] spawn { _value = _this select 0; ... }; This is convenient.
  23. Thanks for reply. It worked well :) When treating variables, how is it? This did not work. [group, 1] setWaypointStatements ["true", "_testvar = 1" ]; ---------- Post added at 09:52 PM ---------- Previous post was at 08:29 PM ---------- I have noticed one mistake. The processing space described to setWaypointStatements differs from the processing space which performs setWaypointStatements. Therefore, a local variable cannot be used. This succeeded. [group, 1] setWaypointStatements ["true", "testvar = 1" ]; It solved. Thanks.
  24. Hi, As first aid-solution, there is a simple method for temporarily restricting the roll of an airplane by scripting. _dir = getdir plane; while {true} do { plane setdir _dir; sleep 0.01; }; With the setdir command, specifying direction of an airplane is always continued. However, this command is horizontally returned in passing even to the angle of the plane. As another method, while {true} do { _dir = getdir plane; _angle = asin((vectordir plane) select 2); _pitch = 0; _vecux = cos(_dir) * cos(_angle) * sin(_pitch); _vecuy = sin(_dir) * cos(_angle) * -sin(_pitch); _vecuz = cos(_angle) * cos(_pitch); plane setVectorDirAndUp [ vectordir plane, [_vecux,_vecuy,_vecuz] ]; sleep 0.01; }; The setVectorDirAndUp command is used and setting the pitch roll of an airplane to 0 is continued. Unless an airplane becomes perpendicular, it will succeed.
  25. How is the result of having tried this? in init.sqf By my test, as for this result, true returns to a value.
×