Help with your scripting

Lua Warning "Delete Object"

Lua Warning "Delete Object"

Postby CreativeOcclusion » 30 Nov 2015, 20:49

I am trying to delete a trigger and the physics body when done using it...It gets deleted just fine, but I get a warning...

LUA WARNING:** DELETE OBJECT ** Attempt failed!
You can not delete an entity that was placed in the scene at edit time.
Only spawned entities can be deleted dynamically.


Is it true that I have to spawn any object that I want to delete?...It seems more feasible to be able to just delete any object that I desire...

Like I said the object gets deleted just like I want, so SkyLine is perfectly capable of following the code...Just don't see the point of the warning...
Thanks, CreativeOcclusion
User avatar
CreativeOcclusion
Skyline Warrior
 
Posts: 366
Joined: 22 Jun 2015, 19:34
Location: Texas

Re: Lua Warning "Delete Object"

Postby SolarPortal » 30 Nov 2015, 20:52

The object does not appear back in the scene i thought after it has been deleted.
This is something we intend to get around at some point.

The warning was to stop you potentially breaking your scene because we thought the entity was not recreated after its deletion
and the data needs to still exist rather than be deleted so we tend to delete the physics and set them invisible.

Thanks for the input :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Lua Warning "Delete Object"

Postby CreativeOcclusion » 01 Dec 2015, 01:04

The warning was to stop you potentially breaking your scene because we thought the entity was not recreated after its deletion
and the data needs to still exist rather than be deleted so we tend to delete the physics and set them invisible.


OK...I got it to work by setting it to invisible....Thanks...
Thanks, CreativeOcclusion
User avatar
CreativeOcclusion
Skyline Warrior
 
Posts: 366
Joined: 22 Jun 2015, 19:34
Location: Texas


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 8 guests

cron