Jump to content

Coyota

Member
  • Content Count

    24
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About Coyota

  • Rank
    Private First Class
  1. Coyota

    help with a script error

    If _allunits is defined only inside that switch case then it won't exist anywhere but in it.
  2. Coyota

    Scripting triggers

    Position coordinates in the mission.sqm are like that. createMarker and createTrigger use [x,y,z] order. Problem with your script bits up there is mismatching coordinates. If they are from same script, why not just use:
  3. Coyota

    Scripting triggers

    Trigger does not activate? Trigger is not created at all? Trigger is created but in wrong place? Trigger creation seems fine although... ?
  4. Im not sure if i understood 100% but standart UAZ with mg has DShKM. Ammo classname for that is not even listed on your script.
  5. If you set the _grpP on the main scope in the begining of that script it will work.
  6. I fixed that DL link if you want to try On Track script. Really long train might be problematic as rails are nearly never perfectly level. I think five or six wagons train is longest i have used. It is also handy when placing stuff on railyards.
  7. First impression is good. Need to play more though. Nice graphics and very nice soundtrack. Vehicle controls feels mostly ok. When turning walrus it feels like it loses all power. This could be reduced some. When assigning waypoint, path finding seems to work but when ordering attack enemy there was some problems. Like walrus tried to drive thru my carrier instead of going around. In manual theres picture of repair screen where prioritys are set Low,Mid,High & Top. How is this done? I only managed to change between Low and Top (LMB). Enemy carrier by a island or middle of the sea? i have only encountered carrier by island and at least then timewarp is dropped well before carriers are in range. Carrier vs carrier causes CTD for me so not so much experience of fight itself.
  8. I used something like this. Allways leading. While {true} do { WaitUntil {leader (group player) != player}; WaitUntil {alive player}; (group player) selectLeader player; }; Only need to start this once.
  9. (_this select 0) = createGroup EAST; Something like that maybe
  10. I have been cleaning and compressing one of my scripts shorter. Call seemed like handy way to shave off big bunch of lines from the script. Script is working just fine but im wondering if theres any point using call like this. I mean is it worth it? Let's say i cut script way shorter with this. Does the use of call actually make it worse compared to just having all the lines? Is it just matter of personal preference? Or is it even nono to use call like this? These might be "stupid questions" but curiosity got me here.
  11. Since i started to learn sqf i have made bunch of more or less useful scripts. Some out of need for script, some to see if i can and some just because. Used them in my own missions but thought to post some here. Somebody might find use for them too. OnTrack.sqf Script places train objects on rails. One of the scripts i have made basically for no reason. I have allways thought placing trains manually was PIA, not difficult at all but annoying. Reason enough. Basically it just places locomotive on the rails and uses attachTo with pre defined offsets to slap wagons on it. Should work on any island/map that uses BIS rails. I have used this on Chernarus and Podagorsk. Works great. // ================================================================== // // HOW TO: // // Place locomotive on map. // Zoom in on the rails you want the train on and use the object ID // number. // Start the script from init field of the locomotive. // // [this,[i]ObjectID[/i]] execVM "OnTrack.sqf" // // // REVERSE OPTION: // // If train is pointing wrong way use third parameter. (true/false) // Default is false. // // [this,[i]ObjectID[/i],true] execVM "OnTrack.sqf" // // // ADDING WAGONS: // // Place any train wagons you like within 50 meter radius of the // locomotive. Closest will be first after locomotive etc... // // ================================================================== // // Known issues, "issues" and some other things: // // - Train is allways placed in straight line and horizontally level. // Placing train on curved rails or up/down slope is not going // to look good. // // - Due to the method used to get the rail height there is 5 second // delay before train is moved to the rails. // // - Placing more than one train. (for example on railyard) // Place them further than 50m apart in editor so they won't // mix up. // // - Train objects can be named. It won't affect the script. // // - Just wagons and no locomotive. // Placement is based on locomotive so here is one way to do it. // Place locomotive and wagons you want. Once train is on tracks // delete locomotive. Trigger with seven second delay works fine. // // - Locomotives can be used as wagons too. // // =================================================================== OnTrack.sqf This script was made with vanilla Arma2. Not tested with OA but it should work just the same. Multiplayer behaviour is uknown as my knownledge about MP requirements is nonexistent. Oh...and no it does not make trains move, sorry.:p
  12. Shot in the dark here but what if you use variable/script handle instead of just nul ? RandomMusic = execVM "random_music.sqf" Savegame should save content/state of variables.(?) Edit: I should have read your post more carefully. You want to relaunch the script after load so this won't make any difference.
  13. Oops :o I was thinking two things while writing and ofcourse i mixed them up. commandGetOut units grp1 Where grp1 is name of the group. commandGetOut units group man1 Where man1 is the leader of the group. (allthought it can be any unit in the group)
  14. doGetOut is the silent version of the commandGetOut but i wouldnt use for each command. [color="Red"]commandGetOut units grp1[/color] grp1 being the name of the group. will give All disembark order. Edit: I mixed up the with the code fixed now
  15. Place Russian(any opfor works i think) unit anywhere on the map and units that are spawned by script will start working correctly.
×