in_passable
on_passable
in_solid
Variables set by the collision detection, describing the entities' current position after the instruction.
Range:
1 - entity ends up in a passable block, on a passable block, or in a solid block.
0 - entity is not in any block.
Type:
var, read-only
Modified by:
c_move, c_trace
Example:
action player_move()
{
while(1)
{
c_move(me,vector(time_step,0,0), nullvector,0);
if (in_solid) // Is Entity inside a block?
{
error("Solid!")
}
if (in_passable) // Is Entity inside a passable block?
{
error("Passable!")
}
if (on_passable) // Is Entity on a passable block?
{
error("On water!");
}
wait(1);
}
}
See also:
c_move, in_solid, on_passable
► latest
version online