Jump to content
Sign in to follow this  
rassiva

Need help removing/hiding rotor on helicopter

Recommended Posts

As the title says I need help with a script that removes or hides the main and tail rotor on helicopters, kinda to what happens when the rotor hits a tree it gets destroyed and disappear. sorry if this has been answered but I have sheared for hours and not found any thing.  :(

Share this post


Link to post
Share on other sites

I'm sorry but I don't really know how to use SelectionNames as I don't know where to put the code. All I get when I use the syntax in the objects init windows is Local variable in global space.  And when I use the code in the example I get the same thing.  :confused_o:

Share this post


Link to post
Share on other sites

I'm sorry but I don't really know how to use SelectionNames as I don't know where to put the code. All I get when I use the syntax in the objects init windows is Local variable in global space.  And when I use the code in the example I get the same thing.  :confused_o:

Johnny Boy has you going in the right direction,

This command returns an array  to what I see.

Here is an example posted on the wiki:

_house= "Land_i_House_Small_02_V3_F" createVehicle _pos; selectionNames _house; //[ // "door_1","door_2","damt_1","door_handle_1","door_handle_2","glass_1_hide", // "glass_2_hide","glass_3_hide","glass_1_unhide","glass_2_unhide","glass_3_unhide", // "glass_4_hide","glass_4_unhide" //]

Don't know how to use it either, so maybe this will get us going in the right way? 

Share this post


Link to post
Share on other sites

I'm wondering if they would be view-able in the config viewer in the editor... Not at my desktop with Arma right now to check, but that might be worth looking into.

Share this post


Link to post
Share on other sites

In the editor, in your mission, or a clean new mission, do the following:

 

1. Place a player unit.

2. Place a helicopter unit and name it chopper1.

3. Run the mission.

4. Press escape to get to the debug console.

5. In one of the 4 debug boxes in console, put this command to see what the selections names are:

selectionNames chopper1; 

6. Find the name of the rotor selection and copy it.

7. In the debug console code box at top of console, put in this statement below (repacing "myRotor" with whateve the name of the rotor name is).

chopper1 hideSelection ["myRotor", 1]; 

8. Click the execute button in console to execute above statement.

9. Exit the debug console and see if the rotor is now hidden on the chopper.

 

If the above worked for you, you can now use that statement in your triggers to hide the rotor.

Share this post


Link to post
Share on other sites

I tried every step 1-9 and it game me the following.

by the way

chopper1 hideSelection ["myRotor", 1];

should be

chopper1 hideSelection ["myRotor", true];

 as it says chopper1 [#]hideSelection ["myRotor", 1]; expeted Bool  when I execute the command any way I got the following from step 6

["tail rotor","main rotor static","proxy:\a3\air_f_beta\heli_transport_02\interior_f.001","proxy:\hsim\temp\proxies\heavy_heli\pilot.001","proxy:\hsim\temp\proxies\heavy_heli\gunner.001","proxy:\hsim\temp\proxies\heli\cargo01.011","proxy:\hsim\temp\proxies\heli\cargo01.002","proxy:\hsim\temp\proxies\heli\cargo01.009","proxy:\hsim\temp\proxies\heli\cargo01.004","proxy:\hsim\temp\proxies\heli\cargo01.007","proxy:\hsim\temp\proxies\heli\cargo01.005","proxy:\hsim\temp\proxies\heli\cargo01.012","proxy:\hsim\temp\proxies\heli\cargo01.006","proxy:\hsim\temp\proxies\heli\cargo01.003","proxy:\hsim\temp\proxies\heli\cargo01.008","proxy:\hsim\temp\proxies\heli\cargo01.013","proxy:\hsim\temp\proxies\heli\cargo01.001","proxy:\hsim\temp\proxies\heli\cargo01.014","proxy:\hsim\temp\proxies\heli\cargo01.015","proxy:\hsim\temp\proxies\heli\cargo01.010","proxy:\a3\air_f_beta\heli_transport_02\tail_rotor_f.001","tail rotor blur","light","tail rotor static","rotorshaftm","main rotor blur","bladem01_blur","bladem02_blur","proxy:\a3\air_f_beta\heli_transport_02\main_rotor_f.000","proxy:\a3\air_f_beta\heli_transport_02\main_rotor_f.001","proxy:\a3\air_f_beta\heli_transport_02\main_rotor_f.002","proxy:\a3\air_f_beta\heli_transport_02\main_rotor_f.003","bladem01","bladem02","bladem03","bladem04","bladem03_blur","bladem04_blur","bladem01_bend","bladem02_bend","bladem03_bend","bladem04_bend","damper_front","damper_left","damper_right","door_back_r","door_back_l","cargoramp","door_hatch_l","door_hatch_r","door_hatch_f","proxy:\hsim\temp\proxies\heli\cargo01.016","proxy:\a3\weapons_f\dummyweapon.001","z_gunholder","proxy:\a3\air_f_beta\heli_transport_02\main_rotor_center_f.001","swashplate","stick_pilot","stick_copilot","lever_pilot","lever_copilot","z_gun_hrot","z_gun_vrot","camo1","camo2","camo3","clan","pedall","pedalr","zbytek"]

Problem is that none seam to work as I tried the to change "myRotor" in to the different stuff in above for example    

chopper1 hideSelection ["tail rotor", true];
chopper1 hideSelection ["main rotor static", true];
chopper1 hideSelection ["proxy:\a3\air_f_beta\heli_transport_02\tail_rotor_f.001", true];
chopper1 hideSelection ["damper_front", true];

I even changed it to false just to see but no differences what so ever. I even made the heli in to a simple object but that only made it face the opposite direction and changed texture into the AAF ones and it even added some logo to the pilots door. :wacko:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×