Hawk39704
Member
As part of a screenplay i spawned a wall using this...
local pWall = spawnSceneObject("naboo", "object/static/structure/corellia/corl_imprv_wall_4x16_s01.iff", X, Y, Z, Cell, math.rad(140) )
it spawns and works fine but then at another part of the screenplay i'm trying to despawn the scene object using this...
SceneObject(pWall):destroyObjectFromWorld()
SceneObject(pWall):destroyObjectFromDatabase()
it seg faults , i've tried only doing destroy from world also and that doesnt work either.
Anyone know what i'm doing wrong?
Thanks!
local pWall = spawnSceneObject("naboo", "object/static/structure/corellia/corl_imprv_wall_4x16_s01.iff", X, Y, Z, Cell, math.rad(140) )
it spawns and works fine but then at another part of the screenplay i'm trying to despawn the scene object using this...
SceneObject(pWall):destroyObjectFromWorld()
SceneObject(pWall):destroyObjectFromDatabase()
it seg faults , i've tried only doing destroy from world also and that doesnt work either.
Anyone know what i'm doing wrong?
Thanks!