View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-28-2015 , 11:52   Re: [TF2 MvM] Destroy/Edit The Tank via SM
Reply With Quote #4

The SDKTools extension has commands for triggering inputs.

Assuming AddHealth takes an int number...

PHP Code:
#include <sdktools>

// Add 200 health to the tank
SetVariantInt(200);
AcceptEntityInput(iEntity"AddHealth"); 
It may take a float instead... there are a bunch of SetVariant functions for different types.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline