Difference between revisions of "Unplayable Items"
Jump to navigation
Jump to search
m
no edit summary
imported>Elder m |
imported>Elder m |
||
Line 90: | Line 90: | ||
Aside: This works equally well for basic items, etc. However, much of the time you want to introduce a persistant scripted item in to the game. This is a bit more tricky since objects easily lose their scripts when being moved from 3D (the world) to 2D (an inventory/container). To do this firstly it is a good idea to have a room of your own to hold stuff, even if you can never get to this area from inside the game. The reason is by doing this you will never cause mod conflicts. You then need to: | Aside: This works equally well for basic items, etc. However, much of the time you want to introduce a persistant scripted item in to the game. This is a bit more tricky since objects easily lose their scripts when being moved from 3D (the world) to 2D (an inventory/container). To do this firstly it is a good idea to have a room of your own to hold stuff, even if you can never get to this area from inside the game. The reason is by doing this you will never cause mod conflicts. You then need to: | ||
(1) MyObject.MoveTo player | (1) MyObject.MoveTo player [actually optional, depending on object] | ||
(2) MyObject.Activate player | (2) MyObject.Activate player |