Touched by the same object
Code:
In this case touch_classname() will be executed twice (for each entity). How to handle such touch only one time? |
Re: Touched by the same object
you would have to check if its already been touched, unfortunately I wouldn't know how to check for this, there is probably a string or int saved to the entity that can be checked against your classname/entID
|
Re: Touched by the same object
Yes, it's obvious way, but I'm looking for a more accurate method.
|
Re: Touched by the same object
change entity to SOLID_NOT or remove the entity if you want it to be untouchable after first touch
|
Re: Touched by the same object
Sad. Thanks.
|
| All times are GMT -4. The time now is 15:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.