Garry's Mod Wiki

Entity:SetEntity

void Entity:SetEntity( string name, Entity entity )

Description

Allows you to set the Start or End entity attachment for the rope.

Arguments

1 string name
The name of the variable to modify. Accepted names are StartEntity and EndEntity.
2 Entity entity
The entity to apply to the specific attachment.

Example

As seen in the constraints module.

local rope = ents.Create( "keyframe_rope" ) -- Attachment point 1 rope:SetEntity( "StartEntity", Entity(1) ) -- Attachment point 2 rope:SetEntity( "EndEntity", Entity(2) )

Page Links


Special Pages


Wikis

?

Render Time: 37ms

Session 0
DB GetPage 7
Generate Html 1
SaveChanges 13
Render Body 0
Render Sidebar 14