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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deleting An Entity
Lewk Offline
Member

Posts: 63
Threads: 6
Joined: Sep 2011
Reputation: 3
#1
Deleting An Entity

Hello again, forum members. I am trying to delete some entities after collision with an area.

The entites im trying to delete are these:

A monster.

Some storage boxes.

A closet.



So far, I've only been able to delete the closet. It seems that it is incapable of deleting the storage box entities, I've tested this by changing the entity file of one of the boxes to a closet.

As for the monster, he deactivates, but does not disappear.

--------------------------------------

The script for the boxes and closet:

SetPropActiveAndFade("", false, 0.1);

----------------------------------------------

The script for the monster:

SetEnemyDisabled("", true);

----------------------------------------------

Now, I am hoping you guys will be able to guide me on how to do these things correctly? thanks. Smile


09-11-2011, 05:57 PM
Find


Messages In This Thread
Deleting An Entity - by Lewk - 09-11-2011, 05:57 PM
RE: Deleting An Entity - by Apjjm - 09-11-2011, 06:11 PM
RE: Deleting An Entity - by Lewk - 09-11-2011, 06:18 PM
RE: Deleting An Entity - by UnseenLegend ( NL ) - 09-13-2011, 01:10 PM



Users browsing this thread: 1 Guest(s)