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

AcceptEntityInput Question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vincenator
Member
Join Date: Aug 2009
Old 08-01-2011 , 19:59   AcceptEntityInput Question
Reply With Quote #1

Quick question. How do I get the following code to work the way I want it to?

PHP Code:
CP 0;
CP FindEntityByClassname(-1"team_control_point");
AcceptEntityInput(CP"SetUnlockTime 10"
I don't know how to deal with arguments (10).

Also, semi-relatedly, I've also been alternatively trying stuff like SetEntPropFloat(ent, Prop_Data, "m_flTimeToEnableCapPoint", 10.0) without avail.

Thanks.
Vincenator is offline
rambomst
SourceMod Donor
Join Date: Nov 2009
Location: Sydney, Australia
Old 08-01-2011 , 20:35   Re: AcceptEntityInput Question
Reply With Quote #2

I would also like to know how to use "AcceptEntityInput" with arguments.
__________________
rambomst is offline
Mainstaff
AlliedModders Donor
Join Date: May 2011
Old 08-01-2011 , 20:42   Re: AcceptEntityInput Question
Reply With Quote #3

Try this:

PHP Code:
new CP 0;
CP FindEntityByClassname(-1"team_control_point");
SetVariantInt(10);
AcceptEntityInput(CP"SetUnlockTime"); 
Mainstaff is offline
Vincenator
Member
Join Date: Aug 2009
Old 08-02-2011 , 00:00   Re: AcceptEntityInput Question
Reply With Quote #4

Thanks!
Vincenator 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 18:08.


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