Files
RCBASIC4/doc/bu/files/actorissolid.txt

16 lines
523 B
Plaintext

#title ActorIsSolid [RCBasic Doc]
#header function ActorIsSolid(actor)
Returns true or false depending on if physics and collision response applies to an actor.
Note: Collision is still able to be checked on an actor but the actor will be like a ghost able to go through wall and other objects.
#code
SetActorSolid(actor, true)
Print "Actor solid state: "; ActorIsSolid(actor) 'This will output 1
SetActorSolid(actor, false)
Print "Actor solid state: "; ActorIsSolid(actor) 'This will output 0
#/end
#ref SetActorSolid