Page 1 of 1

Manipulating an item when it's sitting on an altar

Posted: Fri Nov 14, 2014 10:40 am
by Scotty
If I have branch_1 sitting on the ground and branch_2 sitting on an altar (surface component) and run this:

Code: Select all

print (branch_1.id)
print (branch_2.id)
branch_1.id will execute properly but branch_2.id will chuck an error. I guess this is because it doesn't technically exist in the world like branch_1 does?

How would I go about moving branch_2 off the altar? Surface component doesn't appear to have any way to remove an item.

Re: Manipulating an item when it's sitting on an altar

Posted: Fri Nov 14, 2014 10:49 am
by Prozail
you should be able to grab it through findEntity("branch_2") or by looping through the altar_1.surface:contents()