Difference between revisions of "Talk:Move/slide an object up and down"
Jump to navigation
Jump to search
imported>Lanceor (New page: I found that the script failed to work as-is. The condition in the onactivate block: if xObject == 0 wasn't firing so the initial variables weren't set. I rectified it by changing the l...) |
imported>QQuix (comment) |
||
Line 5: | Line 5: | ||
wasn't firing so the initial variables weren't set. I rectified it by changing the line to checking a DoOnce condition. Could someone else confirm that the original script doesn't work for them as well before I update the script? | wasn't firing so the initial variables weren't set. I rectified it by changing the line to checking a DoOnce condition. Could someone else confirm that the original script doesn't work for them as well before I update the script? | ||
--[[User:Lanceor|Lanceor]] 10:31, 14 December 2010 (EST) | --[[User:Lanceor|Lanceor]] 10:31, 14 December 2010 (EST) | ||
:Since the very next line of code sets xObject to something not-zero, the "if xObject == 0" acts exactly the same as a DoOnce, with the advantage (??) of not using an extra variable. Can't see how this could not work.[[User:QQuix|QQuix]] 16:12, 14 December 2010 (EST) |
Revision as of 16:12, 14 December 2010
I found that the script failed to work as-is. The condition in the onactivate block:
if xObject == 0
wasn't firing so the initial variables weren't set. I rectified it by changing the line to checking a DoOnce condition. Could someone else confirm that the original script doesn't work for them as well before I update the script? --Lanceor 10:31, 14 December 2010 (EST)
- Since the very next line of code sets xObject to something not-zero, the "if xObject == 0" acts exactly the same as a DoOnce, with the advantage (??) of not using an extra variable. Can't see how this could not work.QQuix 16:12, 14 December 2010 (EST)