Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: xdferpc
I want to open a door in the change from one round to another
I think it's a code failure,I leave it down there,in case someone wants to help me
<h3>In the function main()</h3>
thread doormulti();
<h3 class="tw-lang-selector-wrapper">in the bottom</h3>
function doormulti()
{
while ( 1 )
{
level waittill( "between_round_over" );
door1 = GetEntArray( "door1", "targetname" );
wait(0.05);
door1 delete();
iprintlnbold( "Open magic door" );
}
}
ModmeBot:
Reply By: mathfag
door1 is an array so you have to do: for every entity in the array, delete
ModmeBot:
Reply By: xdferpc
mathfag
foreach(door in door1 ) { iprintlnbold( "Open magic door" ); door Delete(); } door1 is an array so you have to do: for every entity in the array, delete