|
Post by aliasz on Oct 27, 2022 22:09:18 GMT
Hi Im having problems with the VDestroyGameobject.
It works with delays till <2 but anything higher like a delay of 3,4,5,6. the gameobject stays in the scene.
So i tought lets see what the script does. and maybe i can edit it a bit So i looked into GameObjectDestroy on Sleep and saw there was a value. so i copied that value preciesly from the script into waitforsecond(6);
but nothing happend and the gameobject stayed also in the scene.
So im very bad at scripting, and the delay interface input option was very cool if it worked at a value more than 2. Can someone help me out. for example give an revised VDestroyGameObject script. so that it works for more than user input 2. now the character falls and while in fall it disappears, its very lame.
kind regards
ps: note I have the latest updated scripts vShooterCoverAddon_v0.8/TPC_Shooter_v2.6.2a./FSM_AI_v1.1.8a
|
|
|
Post by Invector on Oct 28, 2022 21:49:59 GMT
I make tests using your values. and all works fine. wouldn't you be disabling the object before it is destroyed? if yes. The Destroy routine dont will work (coroutines dont work with disabled objects)
|
|
|
Post by aliasz on Oct 30, 2022 10:37:28 GMT
SOLVED, not a bug but a step i overlooked in the process. I followed the process described in this link: invector.proboards.com/thread/4340/remove-enemy-scene-when-diesBut when looking it a again. i saw i forgot to uncheck the "Remove Components After Die" checkbox
When i unchecked the box. remove Components after die. It functioned properly and i could set the delay to a higher value then 2. why it also worked with values till 2 without unchecking the box, i dont know. but that's why i thought i had setup it properly. Anyway this problem is solved. Thanks for your response Invector Administrator
And im hoping you guys still can make a multiplayer template/Add-on. even though i have read here on the forum that it wont be made.
But because the Invector templates and addons. are very good value for money.
Because they are quick to setup and a huge time saver.
|
|