Raised This Month: $ Target: $400
 0% 

Error sending input to env_blood


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 08-15-2012 , 12:50   Error sending input to env_blood
Reply With Quote #1

I have an instance of env_blood spawned, and I'm trying to send it some input.

Code:
SetVariantInt(0);
AcceptEntityInput(blood, "Color", client);
		
SetVariantBool(true);
AcceptEntityInput(blood, "EnableDraw", client);
		
new Float:origin[3];
GetClientAbsOrigin(client, origin);
SetVariantPosVector3D(origin);
AcceptEntityInput(blood, "SetLocalOrigin", client);
		
SetVariantPosVector3D(direction);
AcceptEntityInput(blood, "SetLocalAngles", client);
When ran in game, I get the following errors:

Code:
!! ERROR: bad input/output link:
!! env_blood(env_blood,Color) doesn't match type from <null>(<null>)
!! ERROR: bad input/output link:
!! env_blood(env_blood,SetLocalOrigin) doesn't match type from <null>(<null>)
!! ERROR: bad input/output link:
!! env_blood(env_blood,SetLocalAngles) doesn't match type from <null>(<null>)
What exactly am I doing wrong? According to the ent_info console command (ent_info env_blood), all these inputs are valid.
__________________
"Every man is guilty of all the good he did not do"
DiscoBBQ is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-15-2012 , 13:03   Re: Error sending input to env_blood
Reply With Quote #2

Are you sure these are inputs and not KeyValues (which you send to it via DispatchKeyValue, DispatchKeyValueFloat, and DispatchKeyValueVector)?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 08-15-2012 at 13:04.
Powerlord is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 08-15-2012 , 13:14   Re: Error sending input to env_blood
Reply With Quote #3

Quote:
Originally Posted by Powerlord View Post
Are you sure these are inputs and not KeyValues (which you send to it via DispatchKeyValue, DispatchKeyValueFloat, and DispatchKeyValueVector)?
Running console command "ent_info env_blood" gives me:
Code:
output: OnUser1
  output: OnUser2
  output: OnUser3
  output: OnUser4
  input: EmitBlood
  input: TeamNum
  input: SetTeam
  input: fademindist
  input: fademaxdist
  input: Kill
  input: KillHierarchy
  input: Use
  input: Alpha
  input: AlternativeSorting
  input: Color
  input: SetParent
  input: SetParentAttachment
  input: SetParentAttachmentMaintainOffset
  input: ClearParent
  input: SetLocalOrigin
  input: SetLocalAngles
  input: SetDamageFilter
  input: EnableDamageForces
  input: DisableDamageForces
  input: DispatchResponse
  input: AddContext
  input: RemoveContext
  input: ClearContext
  input: DisableShadow
  input: EnableShadow
  input: DisableDraw
  input: EnableDraw
  input: DisableReceivingFlashlight
  input: EnableReceivingFlashlight
  input: DisableDrawInFastReflection
  input: EnableDrawInFastReflection
  input: AddOutput
  input: FireUser1
  input: FireUser2
  input: FireUser3
  input: FireUser4
  input: RunScriptFile
  input: RunScriptCode
  input: CallScriptFunction
I was able to spawn env_blood using keyvalues in previous games (CSS, L4D2, etc). But using the keyvalue 'amount' crashes the game in CS:GO, and when removed, my code does nothing.
__________________
"Every man is guilty of all the good he did not do"
DiscoBBQ 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 20:12.


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