Frictional Games Forum (read-only)
Help| How can I disable activated Entity? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: SOMA (https://www.frictionalgames.com/forum/forum-55.html)
+--- Forum: User created content (https://www.frictionalgames.com/forum/forum-79.html)
+---- Forum: Development (https://www.frictionalgames.com/forum/forum-82.html)
+---- Thread: Help| How can I disable activated Entity? (/thread-31180.html)



Help| How can I disable activated Entity? - TiManGames - 10-05-2015

Let's say I activated entity by using EntitySetActive.

How do I disable it again? (Make the entity disappear?)


RE: Help| How can I disable activated Entity? - Mudbill - 10-05-2015

Use the same function with false as the argument? Unless something changed in this regard, it should still be SetEntityActive("Name", false);


RE: Help| How can I disable activated Entity? - Romulator - 10-05-2015

(10-05-2015, 01:58 AM)Mudbill Wrote: Use the same function with false as the argument? Unless something changed in this regard, it should still be SetEntityActive("Name", false);

Correct, but since we are using HPL3, we need to use the updated syntax, which is:
PHP Code:
Entity_SetActive("<entity>"false);