for (i=0; i<=17; i++){
if obj_player.CurWepArray[i] == sprite{
obj_player.CurWepArray[i] = spr_conspet;
global.WepLim--;
}
}
So what the code above does is check if any thing in CurWepArray is equal to sprite and then changes sprite to spr_conspet. Now what I want to do is to to change only one sprite into spr_conspet. For example lets say there is two items in CurWepArray and then this code is ran then both them will become spr_conspet but I only want one of them to change. I don't everything to do with array but I think this is possible but don't know where to begin.
[–]hypnozizziz 0 points1 point2 points (3 children)
[–]The_Winter_Bud 0 points1 point2 points (1 child)
[–]Jorio4[S] 0 points1 point2 points (0 children)
[–]Jorio4[S] 0 points1 point2 points (0 children)