Raised This Month: $ Target: $400
 0% 

Solved How do i get building owner(tf2)(vscript)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jarik_guy
Junior Member
Join Date: Dec 2023
Old 12-30-2023 , 14:53   How do i get building owner(tf2)(vscript)
Reply With Quote #1

Is there any function like GetOwner(ent) that allow to get engis buildings owner?
I tried to use GetOwner(ent) but it dosent work and returns NULL by default.
I cant use any plugins or smth like that.
Olny vanila tf2 vscript.

Last edited by jarik_guy; 12-30-2023 at 16:48. Reason: Solved
jarik_guy is offline
reBane
Senior Member
Join Date: May 2020
Old 12-30-2023 , 16:30   Re: How do i get building owner(tf2)(vscript)
Reply With Quote #2

Don't know if this is the best place, but here's an answer:
NetProps.GetPropEntity(building, "m_hBuilder")
The value can be empty for map/script spawned buildings.
__________________
Plugins & LibrariesListingGitHubDosMikeTools ▶ ToDo
reBane is offline
jarik_guy
Junior Member
Join Date: Dec 2023
Old 12-30-2023 , 16:31   Re: How do i get building owner(tf2)(vscript)
Reply With Quote #3

Quote:
Originally Posted by reBane View Post
Don't know if this is the best place, but here's an answer:
NetProps.GetPropEntity(building, "m_hBuilder")
The value can be empty for map/script spawned buildings.
Thank you!
jarik_guy 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 19:10.


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