TobiaszPL Posted May 22, 2019 Share Posted May 22, 2019 maybe stupid questionbut how i can get REF to object that i created by PlaceAtMe() function ??? i rly need this :c Link to comment Share on other sites More sharing options...
maxarturo Posted May 22, 2019 Share Posted May 22, 2019 (edited) I don't know if i understand your question correctly, but if i do, then this little script can give you an idea, is quite simple. * EDITED I removed the script because i now understand your question.You mean, how can you get the "Ref" of the object that was created by the script's "placeAtMe" function. I haven't done it but to script this you should take on account what was created - placed by the "PlaceAtMe", is it an Object or an Actor ?. Then the "GetRef()" should be pointing to that. Edited May 23, 2019 by maxarturo Link to comment Share on other sites More sharing options...
foamyesque Posted May 23, 2019 Share Posted May 23, 2019 (edited) PlaceAtMe() has a return value of the object it creates. Store it in a variable like you would any other function's return result. Edited May 23, 2019 by foamyesque Link to comment Share on other sites More sharing options...
Hoamaii Posted May 26, 2019 Share Posted May 26, 2019 Add this in your script's variables: Form Property MyPlacedObjectBaseForm Auto ObjectReference MyPlacedRef Then in your script, you can use this variable to identify your placed ref, like: Event SomeEvent() MyPlacedRef = Game.GetPlayer().PlaceAtMe(MyPlacedObjectBaseForm) MyPlacedRef.CallSomeOtherFunction() EndEvent You should then be able to use your "MyPlacedRef" variable as you want in you script. Link to comment Share on other sites More sharing options...
Recommended Posts