Jump to content

mtlgd

Member
  • Content Count

    21
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About mtlgd

  • Rank
    Private First Class
  1. uh, remove these two lines from the top of the vrs_AI_general.sqf script. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> Here's the updated alternate vehicle respawn script in which the respawn timer only begins counting down when the crew bail. Code Sample  mtl
  2. mtlgd

    Scripting Rant

    I feel your pain Cougar. I just discovered that, if your testing a script and die, if you select play again, some of your scripts may still be running from the first instance. Rather confusing to say the least.
  3. mtlgd

    Player has left area

    Try  triggerAttachVehicle. Its sets the vehicle (or player IIRC) that will activate the trigger.
  4. mtlgd

    SQF Syntaxe

    execVM. http://www.flashpoint1985.com/cgi-bin....t=66048 Mtl
  5. I was wrong, doesn't work out quite the same, interesting though, appears to have a slight updraft if this read vaguely the same.
  6. http://community.bistudio.com/wiki/wind I would suspect it works on the same principle as VectorDir does for players. 0,1,0 for north..... Mtl
  7. Good question. I'm also surprised by the -100, makes me wonder what the range of this entry is.
  8. Well, that makes this entry from the Biki more confusing. Note the note at the bottom, and the decible references in the second parameter.
  9. Can't remember where I read it, but I believe the second is volume, the third pitch.
  10. From my description.ext <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgSounds { class MyParachute { name = ""; sound[] = {"\sounds\padak_open.wss", 1, .5}; titles[] = {}; }; }; And in the code: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> playsound "MyParachute"; Worked for me.
  11. mtlgd

    error "missing {"

    Bingo!! Thanks a lot, six miles worth, my sanity is preserved!!
  12. I can't figure out how to structure script properly.<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">switch (Param1) do { Â Â case 0: Â Â { code; Â Â }; Â Â case 1: Â Â { code; Â Â }; Â Â }; This is an extract of code that I know works, taken from another script that was downloaded, however when I try to structure my scripting this way, I get the error "missing {". The code itself is good, I can pull it all up to one line and it executes perfectly, but then its six miles long and dificult to read. I've tried using several editors which all insert CRLF characters at the end of the line. however they also show those characters in the sample script also (unless its an editor shortcoming). Any suggestions? I found a discussion about editors and have tried most of them an they all seem to do it. This is the code, in its prefered structure. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">switch (_p2) do { Â Â case 32: Â Â { if ((MyVecX >= 0) and (MyVecX < 1) and (MyVecY <= 1 ) and (MyVecY > 0)) then {MyVecX = MyVecX + _mySin; MyVecY = MyVecY - _mySin}; if ((MyVecX > 0) and (MyVecX <= 1) and (MyVecY <= 0 ) and (MyVecY > -1)) then {MyVecX = MyVecX - _mySin; MyVecY = MyVecY - _mySin}; if ((MyVecX <= 0) and (MyVecX > -1) and (MyVecY >= -1 ) and (MyVecY < 0)) then {MyVecX = MyVecX - _mySin; MyVecY = MyVecY + _mySin}; if ((MyVecX >= -1) and (MyVecX < 0) and (MyVecY >= 0 ) and (MyVecY < 1)) then {MyVecX = MyVecX + _mySin; MyVecY = MyVecY + _mySin}; Â Â }; Â Â case 30: Â Â { if ((MyVecX > -1) and (MyVecX <= 0) and (MyVecY <= 1 ) and (MyVecY > 0)) then {MyVecX = MyVecX - _mySin; MyVecY = MyVecY - _mySin}; if ((MyVecX >= -1) and (MyVecX < 0) and (MyVecY <= 0 ) and (MyVecY > -1)) then {MyVecX = MyVecX + _mySin; MyVecY = MyVecY - _mySin}; if ((MyVecX >= 0) and (MyVecX < 1) and (MyVecY >= -1 ) and (MyVecY < 0)) then {MyVecX = MyVecX + _mySin; MyVecY = MyVecY + _mySin}; if ((MyVecX <= 1) and (MyVecX > 0) and (MyVecY >= 0 ) and (MyVecY < 1)) then {MyVecX = MyVecX - _mySin; MyVecY = MyVecY + _mySin}; Â Â }; }; As you can see, with all of it on one line its hellishly hard to read. Both files are .sqf format. Mtl
  13. mtlgd

    triggerAttachVehicle

    @Bratty Yes it does, if I would have seen that, I would have posted it there, thanks. Could a Mod move this for me please? Never mind, I did get it to work, it just doesn't work the way I thought it would. I thought it attached the trigger to the vehicle, instead it sets the vehicle which will trip the trigger. And the final string was testTrigger triggerAttachVehicle [MyBike], which I had already tried but didn't notice the effect.
  14. I've been beating my brains out over this all day. I have a trigger named testTrigger which is Sensor ID =0 if it matters. I have an M1030 named MyBike vehicle ID = 0. I want to assign this trigger to this bike. I've tried multiple methods but nothing seems to work. Has anyone ever used this, and if so, could you provide your line of code as example. The Wiki says its: Â trigger triggerAttachVehicle [vehicle] How do I refer to the vehicle in this context? Any help would be greatly appreciated. Mtl
  15. mtlgd

    Equipment

    TIR4 monitor Keyboard Trackball CH Pro Throttle CH Fighter stick CH Pro pedals
×