The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make Objects de-spawn (disappear).
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
#1
How to make Objects de-spawn (disappear).

Ok, so this is what im aiming to achieve;

you press a switch in room A,
In room B a pair of book shelves swing open to reveal a hidden passage (i want to do this by making the bookshelves de-spawn where they are currently and make similar ones appear in the open position, im want to do this because the bookshelves are full and so it would be too hard for me to tell them to swivel on their axis.)

However, after trying to use a SetEntityActive("shelves", false); function only some of the items de-spawned. After looking closer at the items that did de-spawn i realised they were all forms of intractable entities, whereas the ones that remained in their place were all static (for example, they came from the entity tabs; ornament, storage and desktop.)

Does anybody know a script that will de-spawn items such as these?

Thanks =)

Edd,
05-06-2011, 04:33 PM
Find


Messages In This Thread
How to make Objects de-spawn (disappear). - by Simpanra - 05-06-2011, 04:33 PM



Users browsing this thread: 1 Guest(s)