Jump to content
Sign in to follow this  
Devastator_cm

addaction with remoteexeccall

Recommended Posts

  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


[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

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

 

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×