Jump to content
Sign in to follow this  
Helepolis989

Whats wrong with this??

Recommended Posts

addmenuitem [menu,Attach To Helicopter,this attachTo [heli1,[0,0,-3]]1];

This is not working, i have been searching the forums for close to a half hour trying to find something that is similar. I would like to get a menu to attach a LAV to the heli's, but the only thing that works is just the normal attachto command, which makes the LAV's completetly attached and always attached, and the scripting page on the arma section do not give any examples so dont know what is wrong.

When i type it in it says "map addmenuitem [menu or index,text,command,priority] so i put what i thought i needed, i did put the map in front as well a few times with no luck.

Share this post


Link to post
Share on other sites

You'd want to use addAction to get a scroll wheel option for this on the vehicle.

In the helo's init put something like:

this addAction ["Attach vehicle","attach.sqf"];

Then have attach.sqf look for proper vehicles and whatnot. There's been a few threads that explain how to do this.

Share this post


Link to post
Share on other sites

ok thank you, i have been searching like i said but i cant ever find them. I put in the search a certain word for the title of a thread, and never get anything with the keyword i used. But thanks, ill try to do that.

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  

×