Difference between revisions of "Talk:SetPos"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Omzy
 
imported>JOG
(Moved pointless info to discussion)
Line 1: Line 1:
I added some additional information that helped me in the process of scripting my mods.--[[User:Omzy|Omzy]] 11:50, 13 June 2006 (EDT)
I added some additional information that helped me in the process of scripting my mods.--[[User:Omzy|Omzy]] 11:50, 13 June 2006 (EDT)
Setting this value via computations does not work. Instead, use GetPos with computations and use the result as a variable for SetPos.
'''This does not work:'''
<pre>SetPos X (GetPos X + 40)</pre>
'''This works:'''
<pre>short xPos
Set xPos to (GetPos X + 40)
SetPos X xPos</pre>
:What's the point of this info? No Function accepts expressions as parameters.--[[User:JOG|JOG]] 12:11, 13 June 2006 (EDT)

Revision as of 11:11, 13 June 2006

I added some additional information that helped me in the process of scripting my mods.--Omzy 11:50, 13 June 2006 (EDT)

Setting this value via computations does not work. Instead, use GetPos with computations and use the result as a variable for SetPos.

This does not work:

SetPos X (GetPos X + 40)

This works:

short xPos
Set xPos to (GetPos X + 40)
SetPos X xPos


What's the point of this info? No Function accepts expressions as parameters.--JOG 12:11, 13 June 2006 (EDT)