Platform Builder Forums

Main => Suggestions => Topic started by: Antikore on January 06, 2020, 11:07:32 PM

Title: Conditional for checking type and ID
Post by: Antikore on January 06, 2020, 11:07:32 PM
For example, if I want a command block to check for anything and I want to check for different objects, like an specific block and then a player etc. We will need this because as far as I know we only can detect the id, but that wouldn't be useful for anything type of command block
Title: Re: Conditional for checking type and ID
Post by: CGM on January 06, 2020, 11:12:47 PM
Really needed!
Title: Re: Conditional for checking type and ID
Post by: saiwong3268 on January 06, 2020, 11:52:36 PM
I am not sure if this is same as OP, but checking status would be great

For example:

check if custom enemy is moving, if so make custom enemy stop
if enemy 5 = move
{
enemy 5 = stop
}

if custom enemy is moving left, then make it move right
if enemy 5 = left
{
enemy 5 = right
}

if player has super jump ability, then stop this ability
if player 1 super jump = true
{
player 1 super jump = false
}

Title: Re: Conditional for checking type and ID
Post by: CGM on January 07, 2020, 04:00:25 PM
You can already do this, Saiwong. Check the conditionals page of Command Prompt.