mr.peanut 1 Posted April 18, 2006 I was trying recently to write a simple script to allow players to have a little more control in OPF t10c parachutes, using  addAction.  (Please do not tell me there already exist steerable chute addons, I know this...)  Since a chute is a vehicle, I addActions to the chute after the player is moved into and assigned to the parachute. For some reason the actions do not appear.  It seems you can not add actions to the parachute vehicle. Can someone please confirm this? If it is true I will not waste any more time on it. Share this post Link to post Share on other sites
Metal Heart 0 Posted April 18, 2006 Maybe the parachute is too far from the player for him to see the actions. Share this post Link to post Share on other sites
mr.peanut 1 Posted April 20, 2006 Maybe the parachute is too far from the player for him to see the actions. Distance to parachute should not matter since the player is in the vehicle. Share this post Link to post Share on other sites
Metal Heart 0 Posted April 20, 2006 Maybe you should add the actions to the player. You could then refer to the chute as 'vehicle player' if you use setvelocity or something. Share this post Link to post Share on other sites
mr.peanut 1 Posted April 20, 2006 I tried adding to the player as well, and it did not work. I think the parachute can not have actions added to it. Share this post Link to post Share on other sites
crashdome 3 Posted April 20, 2006 I think the problem lies in the fact the player is in the parachute vehicle I think. I'm pulling this out of my ass, but I remember trying to add an action to a vehicle (like a truck) and the behavior was very different when a player was outside the vehicle versus inside. I think the only way to get actions available to a player inside a vehicle is through the config.cpp. But again... I am pulling this out of you-know-where so don't chastize me if I am wrong. Share this post Link to post Share on other sites
mr.peanut 1 Posted April 21, 2006 Chastise you? Never!! If you want a player to have an action while in a vehicle, the addAction is applied to the vehicle. This means, of course, that those outside the vehicle can use the action as well. I know this from adding repair and nitro actions to KLRs. If you want the action to only be available to the driver from inside the vehicle, you use getin getout eventhandlers to add and remove the actions. Use the event handlers in conjunction with the local command e.g.<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> if (local driver _vehicle) then {_vehicle addAction["blah","blah.sqs"]}. For some reason you can not add an action to a parachute... I think. This is what I would like to confirm. Share this post Link to post Share on other sites
deanosbeano 0 Posted April 21, 2006 i dont know if its possible to addaction to a chute , i dont know your t1oc unless its a techinchalk term for westchute. but anyway, look for the halo script by ChSHLdS its on ofmdb site. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_chuteon = player addAction [localize "STRC_chon","ChSHLOS.sqs"]; i dont have full script anymore ,cause i kinda dismantled it, but thats the code line they used . its maybe a pointer for ya, it may addaction to player i dont know, hope it helps. Share this post Link to post Share on other sites
mandoble 1 Posted April 22, 2006 This is what I would like to confirm. Confirmed. Share this post Link to post Share on other sites
UNN 0 Posted April 22, 2006 The problem with user actions and vehicles, is touched on here: http://www.flashpoint1985.com/cgi-bin....t=49998 There is at least on work around though. Add the action to a Game Logic and setpos the Game Logic on the pararchute: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">@Call {_Logic SetPos (GetPos _Para); !(Alive _Parar)} Share this post Link to post Share on other sites
mandoble 1 Posted April 22, 2006 I did some tests with parachutes and the only action available was "Put NVGoggles" if you have them equipped. Share this post Link to post Share on other sites