objSparklyDecal = PtFindSceneobject('CalendarStarDecal', PtGetAgeName()) # leave the spark and the regions where they are, they are not supposed to move
objPillar = PtFindSceneobject('pillar03', PtGetAgeName())
dst = objPillar.position()
xUserKI.WarpObjectToPos(objSparklyDecal, dst.getX(), dst.getY(), dst.getZ()) # warp decal to pillar (it will be just at the top)
PtAttachObject(objSparklyDecal.getKey(), objPillar.getKey()) # and attach the two to each other
try: # don't fail if there is no sparkly
objSparklyDecal = PtFindSceneobject('CalendarStarDecal', PtGetAgeName()) # leave the spark and the regions where they are, they are not supposed to move
except:
print "No sparkly to attach"
else:
objPillar = PtFindSceneobject('pillar03', PtGetAgeName())
dst = objPillar.position()
xUserKI.WarpObjectToPos(objSparklyDecal, dst.getX(), dst.getY(), dst.getZ()) # warp decal to pillar (it will be just at the top)
PtAttachObject(objSparklyDecal.getKey(), objPillar.getKey()) # and attach the two to each other
Users browsing this forum: No registered users and 4 guests