# Condition doesn't work.

Status
Not open for further replies.

#### Chewii

Level 11
Hello. Why doesn't this condition work? And what can i do instead of this condition?

• Destructible - Pick every destructible within 50.00 of MovePoint[1] and do (Actions)
• Loop - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (Picked destructible) Equal to No destructible
• Then - Actions

#### Maker

Level 37
How can a picked destructible be no destructible? That makes no sense.

What are you trying to achieve?

#### Chewii

Level 11
Im doing a inventory system. Moving items trigger. And when you move the item to the selected point i want to make sure there is no other dummy destructibles at the selected point.

Last edited:

Level 17
Cheewwiiiii we went over this dont use 50 ;p use a higher number because nothing can be selected with 50 unless its a small destructable. Other than that it should work

Edit: I still dont understand what ur trying to achieve... ?

#### meOme

Level 7
Don't you mean something like this?
• Actions
• Set Counter = 0
• Destructible - Pick every destructible within 100.00 of MovePoint[1] and do (Actions)
• Loop - Actions
• Set Counter = (Counter + 1)
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• 'IF'-Conditions
• Counter Equal to 0
• 'THEN'-Actions
• 'ELSE'-Actions

#### Chewii

Level 11
Cheewwiiiii we went over this dont use 50 ;p use a higher number because nothing can be selected with 50 unless its a small destructable. Other than that it should work

Edit: I still dont understand what ur trying to achieve... ?

It is very very small. And it works with 50 tested it. But the condition doesn't work.

Don't you mean something like this?
• Actions
• Set Counter = 0
• Destructible - Pick every destructible within 100.00 of MovePoint[1] and do (Actions)
• Loop - Actions
• Set Counter = (Counter + 1)
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• 'IF'-Conditions
• Counter Equal to 0
• 'THEN'-Actions
• 'ELSE'-Actions

You solved it! Thanks. weird i didn't thought of that before

Well + rep

Status
Not open for further replies.

Replies
6
Views
2K
Replies
24
Views
1K
Replies
9
Views
803
Replies
4
Views
1K
Replies
13
Views
2K