Forum Jump :

Author Message


Posts: 8
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2019-04-26 14:01        
     
Hey,

Anyone got an Idea why the first debug line correctly returns the crows and the other two just ANY hence I cannot delete the spawned crows.


Here the used scripts:



In my init.sqf:
//crows
FUNKTIO_CROW=compile preprocessfileLineNumbers "scripts\crows\Crows.sqf";

In another script it returns the crows correctly and deletes them if necessary:



Author Message


Posts: 1522
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2019-04-27 21:17        
     
Looks like you have created a local variable [ARRAY] within the scope of the IF Statement and only exists there.

you will need to create it at the beginning of the script if you wish to use it correctly

_bis_crows_victim = [];


Advertisement


Author Message


Posts: 8
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2019-04-27 22:45        
     
# F2kSel : Looks like you have created a local variable [ARRAY] within the scope of the IF Statement and only exists there.

you will need to create it at the beginning of the script if you wish to use it correctly

_bis_crows_victim = [];

Seems you are the only one still helping with arma2 stuff. *PARDON*
Really appreciate your help.
Of course it worked!
Thank you very much!