Devastator_cm 434 Posted September 9, 2016 Hi All, anybody know how to use the new remoteexeccall with addaction?I couldn't figure it out...I have following inside object init this addAction [ "Go", { plane1 setfuel 1;plane1 animate ["ramp_top",0]; plane1 animate ["ramp_bottom",0]; } ]; It works in SP but I need to use this in MP game where anybod who is inside the airplane can use it. How to do it?? Share this post Link to post Share on other sites
davidoss 550 Posted September 9, 2016 [plane1, ["Go", { plane1 setfuel 1; plane1 animate ["ramp_top",0]; plane1 animate ["ramp_bottom",0]; }]] remoteExec ["addAction", 0, plane1]; Share this post Link to post Share on other sites
Devastator_cm 434 Posted September 9, 2016 was that so easy? :((I will try and report back Share this post Link to post Share on other sites
Devastator_cm 434 Posted September 10, 2016 ramp worked but fuel notI will look around if I can find a solution for fuel.. Share this post Link to post Share on other sites
R3vo 2652 Posted September 10, 2016 setFuel needs to be executed where the vehicle is local. So try [plane1,1] remoteExec ["setFuel",plane1]; Share this post Link to post Share on other sites
davidoss 550 Posted September 10, 2016 This is weird as the command are already send to execute everywhere Share this post Link to post Share on other sites
Devastator_cm 434 Posted September 10, 2016 setFuel needs to be executed where the vehicle is local. So try [plane1,1] remoteExec ["setFuel",plane1]; but I need to add it inside addaction bit or? Because when I use the action ramp needs to be closed and plane needs to start taxiing Share this post Link to post Share on other sites
R3vo 2652 Posted September 10, 2016 This is weird as the command are already send to execute everywhere Yes you're right, that's weird. I missed that. Maybe JIP parameter (plane1) is incorrect? Share this post Link to post Share on other sites
Devastator_cm 434 Posted September 10, 2016 plane1 is the c130 belongs to server as Pilots are AIshould I use _plane1? Share this post Link to post Share on other sites