Jump to content

Nicole_UK

Member
  • Content Count

    22
  • Joined

  • Last visited

  • Medals

Community Reputation

2 Neutral

About Nicole_UK

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I put all that code into the units init (like i did with my original event handler) but its not working. It wont let me save it it keeps saying "error invalid number in expression". Im a bit confused as to what im doing wrong? Am i supposed to put it all in the unit's init or in the description.ext? 😔
  2. Thank you for your help - do i put all that code where i put my original event handler is and just replace it? sorry im just a bit new to modding so i can get confused easily lmao
  3. Hey everyone 😀 Iv been stuck with this issue for AGES now and cant work out what to do, can someone please help me?! Basically im making a mission where the AI shouts when firing their weapon (like a warcry) I have implemented the sounds fine and I can get them to shout when firing which is great but they shout EVERYTIME they fire so the sounds are kind of overlapping and constantly been played. I dont want my AI to do their warcry everytime they fire their weapon maybe like 50% of the time or something. Is there a way i can set it to play every other time they fire their weapon (maybe every 3rd time? or at random?) so there is no overlapping and it sounds more like realistic shouting? This is the event handler im using: this addEventHandler ["Fired", { params ["_IS1"]; _IS1 say3D "akbar1"; }]; Im sure there is a very easy fix for this that someone will know of but i cant find an answer anywhere - if someone can help me id really appreciate it! 👍
  4. this works perfectly - thank you soooooo much omg been trying to sort this for ages!!! thank you again! anyone wanting to do the same thing use this code 😀
  5. Thank you so much i will try this out tonight! i really appreciate it 😀
  6. thanks but its still not working not sure what im doing wrong... did you get it to work?
  7. Yes iv just tried again now and it didnt work im just not sure what im doing wrong at all.... heres what im ptting maybe you guys can see where im going wrong lol because i just dont get it heres my description.ext (the sounds list): class CfgSounds { class akbar1 { name = "akbar1"; // Name for mission editor sound[] = {\Sound\akbar1.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class akbar2 { name = "akbar2"; // Name for mission editor sound[] = {\Sound\akbar2.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class akbar3 { name = "akbar3"; // Name for mission editor sound[] = {"\Sound\akbar3.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar4 { name = "akbar4"; // Name for mission editor sound[] = {\Sound\akbar4.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class akbar5 { name = "akbar5"; // Name for mission editor sound[] = {"\Sound\akbar5.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar6 { name = "akbar6"; // Name for mission editor sound[] = {"\Sound\akbar6.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar7 { name = "akbar7"; // Name for mission editor sound[] = {"\Sound\akbar7.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar8 { name = "akbar8"; // Name for mission editor sound[] = {"\Sound\akbar8.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar9 { name = "akbar9"; // Name for mission editor sound[] = {"\Sound\akbar9.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar10 { name = "akbar10"; // Name for mission editor sound[] = {"\Sound\akbar10.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation1 { name = "ululation1"; // Name for mission editor sound[] = {\Sound\ululation1.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class ululation2 { name = "ululation2"; // Name for mission editor sound[] = {\Sound\ululation2.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class ululation3 { name = "ululation3"; // Name for mission editor sound[] = {"\Sound\ululation3.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation4 { name = "ululation4"; // Name for mission editor sound[] = {\Sound\ululation4.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class ululation5 { name = "ululation5"; // Name for mission editor sound[] = {"\Sound\ululation5.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation6 { name = "ululation6"; // Name for mission editor sound[] = {"\Sound\ululation6.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation7 { name = "ululation7"; // Name for mission editor sound[] = {"\Sound\ululation7.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation8 { name = "ululation8"; // Name for mission editor sound[] = {"\Sound\ululation8.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation9 { name = "ululation9"; // Name for mission editor sound[] = {"\Sound\ululation9.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation10 { name = "ululation10"; // Name for mission editor sound[] = {"\Sound\ululation10.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class YPJ_song { name = "YPJ_song"; // Name for mission editor sound[] = {"\Sound\YPJ_song.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; }; in the editor i names my units (variable name) and put this in their init (the unit's variable names are i1, i2, i3, etc...): this addEventHandler ["Fired", { params ["_i1"]; _i1 say3D ["akbar1"]; }]; Im just not sure where im going wrong?? 😓
  8. yes my bad i copied it wrong - oops 😁 but it still wouldnt play the sounds , just threw an error message up so im not sure whats going on still..... wtf arma drives me crazy lol.
  9. Iv just tried this now and its still saying im missing a ";" ☹️ im so confused lol what am i doing wrong? i have the sounds in the description.ext, i have the unit's variable name.... i dont get it
  10. Hello, so i have an issue im trying to solve and im pretty sure its something simple but i cant work it out. Im wanting to play a sound when someone fires their weapon (a battle cry), i thought i had the correct script thing but its not working can someone help? my code (i put this in the init box of the unit: unit1 addEventHandler ["Fired", unit1 say3D ["sound1"]; }]; but it keeps saying im missing a ";" and wont let me enter it. All i want is for units to shout angrily when they fire their weapon ☹️
  11. can someone help plz lmaoo im stuck 😕
  12. this is how iv put the sounds im wanting in the description.ext: class CfgSounds { class akbar1 { name = "akbar1"; // Name for mission editor sound[] = {\Sound\akbar1.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class akbar2 { name = "akbar2"; // Name for mission editor sound[] = {\Sound\akbar2.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class akbar3 { name = "akbar3"; // Name for mission editor sound[] = {"\Sound\akbar3.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar4 { name = "akbar4"; // Name for mission editor sound[] = {\Sound\akbar4.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class akbar5 { name = "akbar5"; // Name for mission editor sound[] = {"\Sound\akbar5.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar6 { name = "akbar6"; // Name for mission editor sound[] = {"\Sound\akbar6.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar7 { name = "akbar7"; // Name for mission editor sound[] = {"\Sound\akbar7.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar8 { name = "akbar8"; // Name for mission editor sound[] = {"\Sound\akbar8.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar9 { name = "akbar9"; // Name for mission editor sound[] = {"\Sound\akbar9.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class akbar10 { name = "akbar10"; // Name for mission editor sound[] = {"\Sound\akbar10.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation1 { name = "ululation1"; // Name for mission editor sound[] = {\Sound\ululation1.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class ululation2 { name = "ululation2"; // Name for mission editor sound[] = {\Sound\ululation2.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class ululation3 { name = "ululation3"; // Name for mission editor sound[] = {"\Sound\ululation3.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation4 { name = "ululation4"; // Name for mission editor sound[] = {\Sound\ululation4.ogg, 0.8, 1.0}; titles[] = {0, ""}; }; class ululation5 { name = "ululation5"; // Name for mission editor sound[] = {"\Sound\ululation5.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation6 { name = "ululation6"; // Name for mission editor sound[] = {"\Sound\ululation6.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation7 { name = "ululation7"; // Name for mission editor sound[] = {"\Sound\ululation7.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation8 { name = "ululation8"; // Name for mission editor sound[] = {"\Sound\ululation8.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation9 { name = "ululation9"; // Name for mission editor sound[] = {"\Sound\ululation9.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class ululation10 { name = "ululation10"; // Name for mission editor sound[] = {"\Sound\ululation10.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; class YPJ_song { name = "YPJ_song"; // Name for mission editor sound[] = {"\Sound\YPJ_song.ogg", 0.8, 1.0}; titles[] = {0, ""}; }; };
  13. so i created a init.sqf file in the mission folder (like a description.ext file) and this is the code i put in it: ------------------------------------------------------------------------ IS_Aggro_Scream = { _IS_Aggro_Scream = selectRandom ["akbar1","akbar2", "akbar3", "akbar4", "akbar5"] ; _this say3d _IS_Aggro_Scream; }; {if (side _x isEqualTo East) then { _x addEventHandler ["Fired", {[_this select 0] call IS_Aggro_Scream}]; }; } forEach allUnits; YPJ_Aggro_Scream = { _YPJ_Aggro_Scream = selectRandom ["ululation11","ululation12", "ululation13", "ululation14", "ululation15"] ; _this say3d _YPJ_Aggro_Scream; }; if (side _x isEqualTo West) then { _x addEventHandler ["Fired", {[_this select 0] call YPJ_Aggro_Scream}]; }; } forEach allUnits; ------------------------------------------------------ Im getting an error message on start of mission and the sounds arent playing so im not sure what iv done wrong?
×