Difference between revisions of "Questions"
Jump to navigation
Jump to search
→Using Scripts To Add Object and Raising it
imported>ShadowDancer (MoveTo isn't reccomended for items) |
imported>DragoonWraith |
||
Line 1,106: | Line 1,106: | ||
:::[[User:ShadowDancer|ShadowDancer]] 06:06, 9 July 2006 (EDT): The Wiki also states that [[MoveTo]] "is only reliable for Actors. Using it to move other objects types, especially non-persistent references and inventor items may result in unexpected behavior." so keep that in mind as well. I haven't personally tested it for moving items so I don't know the reason for this warning, but my guess is due to possible embedding in uneven ground and/or object orientation issues. | :::[[User:ShadowDancer|ShadowDancer]] 06:06, 9 July 2006 (EDT): The Wiki also states that [[MoveTo]] "is only reliable for Actors. Using it to move other objects types, especially non-persistent references and inventor items may result in unexpected behavior." so keep that in mind as well. I haven't personally tested it for moving items so I don't know the reason for this warning, but my guess is due to possible embedding in uneven ground and/or object orientation issues. | ||
::::[[User:DragoonWraith|<font face="Oblivion,Daedric" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 10:57, 9 July 2006 (EDT): You're absolutely right, forgot about that. | |||
::::I think both have a tendency to remove collision data on things, though. | |||
I forgot to mention before that I was indeed using setpos z, zposition. I tried both methods and they both didn't work, my tent was still halfway in the ground, see anything wrong with this code? or you can just remove the + 10 and add tent.moveto tent 0 0 10 | I forgot to mention before that I was indeed using setpos z, zposition. I tried both methods and they both didn't work, my tent was still halfway in the ground, see anything wrong with this code? or you can just remove the + 10 and add tent.moveto tent 0 0 10 | ||
Line 1,155: | Line 1,158: | ||
It worked! Thanks guys! I was just confused about the unit of measurement. [[User:Treleth|Treleth]] 14:38, 7 July 2006 (EDT) | It worked! Thanks guys! I was just confused about the unit of measurement. [[User:Treleth|Treleth]] 14:38, 7 July 2006 (EDT) | ||
:[[User:DragoonWraith|<font face="Oblivion,Daedric" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 10:57, 9 July 2006 (EDT): Actually, looking at your code... Why didn't you just do this: | |||
scn PTTentUnpack | |||
Begin OnActivate | |||
if ( GetInWorldSpace Tamriel == 1 ) && ( player.IsSneaking == 0 ) | |||
PlaceAtMe PTTentExterior 0 0 64 | |||
Disable | |||
else | |||
player.AddItem PTTentMaterials 1 | |||
Disable | |||
endif | |||
End | |||
:That should do the same thing, much more simply. Also, with your version, if you dropped it in a non-Tamriel place, the player'd never be able to pick it up again. This way, it's just added to the player's inventory regardless of sneaking if it's not in Tamriel. | |||
== Rapid-Fire Casting == | == Rapid-Fire Casting == |