Mechanic
setcollidable
Sets whether the mob is collidable
Configuration Fields (1)
| Name | Type | Default | Description |
|---|---|---|---|
| collidable c, state, value | boolean | false | Whether the target can collide with entities |
Examples & Notes
Examples
In this example, the mob will permanently become not collidable once it receives a source of damage.
ExampleMob:
Type: ZOMBIE
Skills:
- setcollidable{c=false} @self ~onDamaged
In this example, the mob will apply an aura to itself. For the duration of the aura, the mob will be non collidable.
ExampleMob:
Type: ZOMBIE
Skills:
- aura{d=100;rd=true;ms=1;
onStart=[
- setcollidable{c=false} @self
];
onEnd=[
- setcollidable{c=true} @self
]} @self ~onDamaged
Universal Mechanic Options
- Author:
- Ashijin
