Difference between revisions of "Talk:PlaceAtMe - ObjectReference"
Jump to navigation
Jump to search
imported>Fg109 (answered question) |
imported>Programmeurenforce |
||
Line 17: | Line 17: | ||
:<source lang = "papyrus">Horker.Delete()</source> | :<source lang = "papyrus">Horker.Delete()</source> | ||
:In order for a reference to actually be [[Delete_-_ObjectReference|deleted]], it must be a reference created at run-time, disabled, and [[Persistence_(Papyrus)|non-persistent]]. If that's not what you are asking, then I am not understanding your question. --[[User:Fg109|Fg109]] 10:31, 20 May 2012 (EDT) | :In order for a reference to actually be [[Delete_-_ObjectReference|deleted]], it must be a reference created at run-time, disabled, and [[Persistence_(Papyrus)|non-persistent]]. If that's not what you are asking, then I am not understanding your question. --[[User:Fg109|Fg109]] 10:31, 20 May 2012 (EDT) | ||
: | |||
:Thank you very much for the answear, it helped a lot . Just one last precision i would like to know : about '''run-time''', do you mean Skyrim run-time or the object containing the script's runtime, or the event run-time ? | |||
:(Let's say, for instance , I want to create a button that places an actor at the player's position and delete the previously created actor.) --[[User:Programmeurenforce|Programmeurenforce]] 02:29, 21 May 2012 (EDT) |
Revision as of 01:29, 21 May 2012
Where do you get the last created ObjectReference returned value ?
For example in :
ObjectReference Horker = Game.GetPlayer().PlaceAtMe(Game.GetForm(0x00023ab1))
Do you get it in "Horker" ? Can i use it for Actor based functions ?
For example; if i want to delete the previously created ObjectReference, can i use the IsDead() function then the Delete() function or do i need to get the references from another event ?
(Sorry if my question is not apropriate here , or if it is not clear, feel free to delete it)
--Instead of changing the world, let's change ourselfs 04:39, 19 May 2012 (EDT)
- The reference to the created horker would be stored in the object reference variable "Horker". If you want to delete the created horker, you use
Horker.Delete()
- In order for a reference to actually be deleted, it must be a reference created at run-time, disabled, and non-persistent. If that's not what you are asking, then I am not understanding your question. --Fg109 10:31, 20 May 2012 (EDT)
- Thank you very much for the answear, it helped a lot . Just one last precision i would like to know : about run-time, do you mean Skyrim run-time or the object containing the script's runtime, or the event run-time ?
- (Let's say, for instance , I want to create a button that places an actor at the player's position and delete the previously created actor.) --Programmeurenforce 02:29, 21 May 2012 (EDT)