Raised This Month: $51 Target: $400
 12% 

SetParent player to antity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Entity
Member
Join Date: May 2016
Old 12-12-2021 , 15:14   SetParent player to antity
Reply With Quote #1

Hello, my friends! Tell me, please, is it possible to attach a player to a moving object using sourcepawn?

SetVariantString("!activator");
AcceptEntityInput(client, "SetParent", entity, client);


If you do this, then the player fails for the map...
Entity is offline
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-13-2021 , 00:27   Re: SetParent player to antity
Reply With Quote #2

which game? parenting players to objects seems to always cause weird issues with client side prediction in source engine games. One of the key things when an entity is parented to another is it will no longer collide. If your map is made out of a pure model and not BSP or something like that i could see it causing the player to fall through the map. Another approach would of course be to use a timer and teleport the players location to act as if it was parented to the object.
backwards is offline
Entity
Member
Join Date: May 2016
Old 12-13-2021 , 02:06   Re: SetParent player to antity
Reply With Quote #3

Quote:
Originally Posted by backwards View Post
which game? parenting players to objects seems to always cause weird issues with client side prediction in source engine games. One of the key things when an entity is parented to another is it will no longer collide. If your map is made out of a pure model and not BSP or something like that i could see it causing the player to fall through the map. Another approach would of course be to use a timer and teleport the players location to act as if it was parented to the object.
CS:S. I create prop_dynamic_ornament, which is bound to hegrenade_projectile in turn, I set it the desired animation. Then I push it with a certain force and I want to bind the player to this object.
Entity is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode