o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.

Home Page:https://o3de.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

‘Deactivate’ and ‘Activate’ in script canvas doesn’t function as expected

pwalterscarb opened this issue · comments

If this is just how it's supposed to work then please let me know... If I ‘Deactivate game entity’ or ‘Deactivate entity’ with no children and then ‘Activate’ it, that doesn’t work. The entity is gone like it was removed from memory and cannot be activated. If I do a print statement, I get the following error when it tries to re-activate it...

[Error] (Script) - ?:-1: attempt to index a nil value (field 'm_TimeDelayNodeable_scvm_1')
 ---------- START STACK TRACE ---------- 
=[C](-1): index
=?(-1): ?

 ---------- END STACK TRACE ----------

A video showing the script canvas being run on a single object.
https://github.com/o3de/o3de/assets/50999342/47ea53e2-036c-4cd7-becf-8f91eaf37387

A screenshot of the script canvas script.
2024-04-15 16_50_48-Script Canvas

A copy of the scriptcanvas in json format, just change the end file name to .scriptcanvas.
setActivateTest.json

Found in Branch
https://github.com/carbonated-dev/o3de
Commit ID from o3de/o3de Repository
custom engine version 2310.2

Desktop/Device:
Device: [PC]
OS: [Windows]
Version [10]
CPU [Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz, 3501 Mhz, 6 Core(s), 12 Logical Processor(s)]
GPU [NVIDIA GeForce RTX 3090]
Memory [32GB]