This is where active bugs can be seen and where to post a new bug.

Delete runtime spawned

Delete runtime spawned

Postby epsilonion » 14 May 2017, 10:00

So, I was playing with the platform demo i was working on before and when spawning in a preset, naming the tag for that preset and then deleting it when it hits a trigger gets you an error.

"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."

The object is spawned in using the entity.spawnPreset("Barrel05",x,y,z); command.

This is the scene file using the resource collector (works great)...
platform.zip
(2.91 MiB) Downloaded 362 times


It worked in gen 1.. :|
User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Delete runtime spawned

Postby SolarPortal » 14 May 2017, 14:46

ok thanks :) Will check it out after current task.
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: Delete runtime spawned

Postby epsilonion » 14 May 2017, 15:03

No rush mate, you are allowed a day off you know.. :)
User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Delete runtime spawned

Postby SolarPortal » 14 May 2017, 15:09

haha when?... :P
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


Return to Active / New Bugs

Who is online

Users browsing this forum: No registered users and 6 guests