Jump to content
Sign in to follow this  
R3vo

remoteExec is not executed in SP with target param set to 2

Recommended Posts

So I was working on a new 3den attribute when I noticed that this code

s1 remoteExec ['removeAllWeapons',2,true]// s1 is an existing unit

is not working in singleplayer.  As soon as I change the target parameter to 0 (all + where remoteExec was called) it works *no surprise*

 

I was expecting it to work because isServer returns true in single player.

 

Could anyone shed some light on that?

  • Like 1

Share this post


Link to post
Share on other sites

maybe owner does not return 2 in SP.

 

Seems like it,

owner player

returns 0 in SP =/

  • Like 1

Share this post


Link to post
Share on other sites

Could anyone shed some light on that?

 

Hi R3vo, I could try if you send me the source code for "remoteExec"

 

;) Nikander

Share this post


Link to post
Share on other sites

Nice find r3vo.

 

So you think it's not intended?

Share this post


Link to post
Share on other sites

Perhaps, it's for one of similar reasons attachTo can't work fine in MP (this command is supposed to be AG EG) but it fails on some embedded map buildings (owner 0) and successes on vehicles or edited buildings (owner 2). I found all possible cases:

- object correctly attached everywhere (all PCs),

- object attached only on the local PC (where the action is done) and on ground for the other clients/hosted server;

- or even object on ground for anybody.

I'm rather sure it's not the unique reason because it's depending also on the type of building/object you're trying to attach something on.

Share this post


Link to post
Share on other sites

No, whats not working is the true at the end

 

Just enter in a SP and put in the console "lala" remoteExec ["hint",2] you will see it's working.

Share this post


Link to post
Share on other sites

No, whats not working is the true at the end

 

Just enter in a SP and put in the console "lala" remoteExec ["hint",2] you will see it's working.

 

Yep I know, I posted my results in the scripting discussion thread.

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  

×