![]() |
Problem With Destroy()
I'm havin troubles getting this script to delete itself after the player touchs it.. Can someone tell me whats worng with it?
PHP Code:
|
triggerserver(..) only works on weapons.
Use this: PHP Code:
PHP Code:
|
okay, now i gots this, still doesnt work:
PHP Code:
|
Try adding a null parameter to the trigger
triggeraction(this.x + .5, this.y + .5, "Trigger", null); I'm not sure why, but it seems to work |
Quote:
|
I assume this is in a level NPC? In that case, you should just use
PHP Code:
|
Quote:
That would just hide the NPC but the NPC itself would still be there. If you use destroy, the NPC itself is destroyed. It all depends on how he wants to use it, but hide is not the same as destroy. |
Using hide() is not very good, since it still exists, making it just use CPU it shouldn't.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
All times are GMT +2. The time now is 09:17 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.