R3vo 2654 Posted March 31, 2016 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? 1 Share this post Link to post Share on other sites
sarogahtyp 1108 Posted March 31, 2016 maybe owner does not return 2 in SP. Share this post Link to post Share on other sites
R3vo 2654 Posted March 31, 2016 maybe owner does not return 2 in SP. Seems like it, owner player returns 0 in SP =/ 1 Share this post Link to post Share on other sites
Nikander 123 Posted March 31, 2016 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
das attorney 858 Posted March 31, 2016 Nice find r3vo. Share this post Link to post Share on other sites
R3vo 2654 Posted March 31, 2016 Nice find r3vo. So you think it's not intended? Share this post Link to post Share on other sites
pierremgi 4822 Posted April 24, 2016 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
barbolani 198 Posted April 24, 2016 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
R3vo 2654 Posted April 24, 2016 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