Raised This Month: $ Target: $400
 0% 

[TF2] Hook for pulling out building


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Boonie
Member
Join Date: Aug 2015
Old 09-09-2015 , 10:33   [TF2] Hook for pulling out building
Reply With Quote #1

Is there a hook for when you pull out a building to build it? I tried the below, it it doesn't seem to hook. I also checked the wiki and couldn't find anything for when you pull out your building (other then "player_carryobject", which is when you actually pick up your building).
Code:
HookEvent("player_builtobject", Event_BuildObject, EventHookMode_Pre);
HookEvent("player_builtobject", Event_BuildObject);
HookEvent("player_carryobject", Event_CarryObject);
Edit, I can hook it with commandlinelistener.
Code:
AddCommandListener(Event_StartBuildObject, "build");

Last edited by Boonie; 09-09-2015 at 23:47.
Boonie 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 15:14.


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