Jump to content

somenoob240

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Everything posted by somenoob240

  1. Hello, I'm very new to Arma 3 scripting. I'm trying to figure out how selections in a dialog work (I'm just using the GUI editor via debug menu), and how pulling certain vehicles to assign to each selection (then spawning at marker) would work. Figured I'd ask since I'm not really sure what to even search for. If my prior knowledge of basic HTML coding is correct I'd need to assign some kind of variable to the selected item(s) then pass that to the spawn script, but I just don't know how that works with Arma's code 😛 What I've got so far is my defines and all the code from the dialog I needed to paste into a file, plus the description.ext. Anything helps! Cheers.
  2. Also, I've been trying to figure out how to use the cursor selection to assign the index value to the lbSetData lines, but I don't know how to do that since the way I'm trying to do it is: while {true} do { _index = lbCurSel 1500; _vehicleSel = lbData [1500,_index]; }; Should I execute before or after defining the other variables?
  3. Checked them out, found a bunch of useful stuff. Only issue I've got now is I have no idea how assigning a value (in this case classnames) to a variable that isn't simply just text. For example I've got: _charger10 = { lbAdd [1500, "Dodge Charger '10"]; lbSetData [1500, _index, "Fox_Charger10"]; }; Not sure if that's the right formatting to use to execute multiple lines of code in one var.
  4. Tried to solve this earlier today, and it seemed to solve itself somehow. Though, when I added more animations it broke again. This happens consistently whenever I try to add new animation entries to the config.cpp. Really at a loss here, not sure what to do. I'm not really experienced as far as mod making/coding goes so I'm not entirely sure of where I should even start with it. In game when I try to move around it plays completely unrelated animations that shouldn't be playing, i.e. trying to move forward makes me move to the side. I'm just trying to add in static animations. I'm making the PBO via Mikero's Tools (which hasn't thrown any errors). The only mods loaded (besides my local mod) are POLPOX's base functions and the Artwork Supporter. config.cpp: https://pastebin.com/za3ysdNd
×