Search found 2 matches

by you171717
Fri Jan 20, 2017 7:41 am
Forum: Plugin Development Support
Topic: Spawn entity and attach to player?
Replies: 3
Views: 3759

Re: Spawn entity and attach to player?

L'In20Cible wrote:The function you are looking for is Entity.set_parent.


'set_parent' function make prop invisible

is this trick of tf2? :p
by you171717
Fri Jan 20, 2017 6:54 am
Forum: Plugin Development Support
Topic: Spawn entity and attach to player?
Replies: 3
Views: 3759

Spawn entity and attach to player?

Hello, I want attach prop(hat) to player in tf2. But code doesn't work properly (even spawning prop). target = Player(1) entity = Entity.create('prop_physics') entity.model = Model('props_junk/wood_crate001a.mdl') entity.spawn() entity.teleport(tar...

Go to advanced search