Talk:setVelocity

From Bohemia Interactive Community
Jump to navigation Jump to search

As far as I can tell, the effect of setVelocity is NOT global, despite what the Wiki page says. See this forum post for details. So should the effect-global icon be changed to an effect-local icon? --Disat, 23-Jul-2010

The effect is global, you just have to ensure that you execute it on the machine where the object is local. Since you are talking about a VBS2 application, you'd need a command like this: publicExec ["local _this","_this setVelocity [0,0,5]",_projectile]
If the effect weren't global, you'd need to issue it on every machine, to be seen through the network (e.g. publicExec ["true","hint 'hello everyone'"])
--Kronzky 20:45, 23 July 2010 (CEST)