SetEntityAttribute()

Syntax

SetEntityAttribute(#Entity, Attribute, Value)
Description
Set the specified attribute value to the given entity.

Parameters

#Entity The entity to use.
Attribute The attribute to set.
Value Value of the attribute to set. The following attributes are available:
  #PB_Entity_Friction        : Change the friction value.
  #PB_Entity_Restitution     : Change the restitution value.
  #PB_Entity_MinVelocity     : Set the minimum linear velocity of the entity. As this value isn't stored,
                                it needs to be called every time the entity is moved.
  #PB_Entity_MaxVelocity     : Set the maximum linear velocity of the entity. As this value isn't stored,
                                it needs to be called every time the entity is moved.
  #PB_Entity_ForceVelocity   : Set the linear velocity of the entity. As this value isn't stored,
                                it needs to be called every time the entity is moved.
  #PB_Entity_LinearSleeping  : Change the minimum linear velocity value under which the entity will be sleeping.
  #PB_Entity_AngularSleeping : Change the minimum angular velocity value under which the entity will be sleeping.
  #PB_Entity_DeactivationTime: Time to wait (in milliseconds) before putting the entity in sleep mode when the above conditions are met.

Return value

This function has no return value.

See Also

GetEntityAttribute()

Supported OS

All

<- ScaleEntity() - Entity Index - SetEntityCollisionFilter() ->