Raised This Month: $32 Target: $400
 8% 

Solved Teleport an Entity above Bomb After Plant


Post New Thread Reply   
 
Thread Tools Display Modes
eyal282
Veteran Member
Join Date: Aug 2011
Old 11-23-2018 , 18:17   Re: Teloport an Entity above Bomb After Plant
Reply With Quote #11

Quote:
Originally Posted by kratoss1812 View Post
ok, but what value should I modify?
fPos[2] += 70 something like that?
Yes.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 11-23-2018 , 18:31   Re: Teloport an Entity above Bomb After Plant
Reply With Quote #12

Quote:
Originally Posted by eyal282 View Post
Yes.
I tried and did not work
__________________
kratoss1812 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 11-23-2018 , 18:33   Re: Teleport an Entity above Bomb After Plant
Reply With Quote #13

Confirm there are no bugs with your particle creator. Send full code.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-24-2018 , 02:49   Re: Teleport an Entity above Bomb After Plant
Reply With Quote #14

Spoiler


https://youtu.be/CNKhTHkQlv8
PHP Code:
#include <sdktools>



public void OnPluginStart()
{
    
HookEvent("bomb_planted"bomb_planted);
}


public 
void bomb_planted(Event event, const char[] namebool dontBroadcast)
{
    
int entity MaxClients+1;

    
entity FindEntityByClassname(entity"planted_c4");

    if(
entity == -1) return;

    
PrintToServer("planted_c4 %i"entity);

    
float position[3];
    
GetEntPropVector(entityProp_Send"m_vecOrigin"position);
    
position[2] += 100.0;

    
TE_SetupSparks(positionNULL_VECTOR520);
    
TE_SendToAllInRange(positionRangeType_Visibility0.0);


__________________
Do not Private Message @me

Last edited by Bacardi; 11-24-2018 at 03:05.
Bacardi is offline
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 11-24-2018 , 04:56   Re: Teleport an Entity above Bomb After Plant
Reply With Quote #15

Quote:
Originally Posted by Bacardi View Post
Spoiler


https://youtu.be/CNKhTHkQlv8
PHP Code:
#include <sdktools>



public void OnPluginStart()
{
    
HookEvent("bomb_planted"bomb_planted);
}


public 
void bomb_planted(Event event, const char[] namebool dontBroadcast)
{
    
int entity MaxClients+1;

    
entity FindEntityByClassname(entity"planted_c4");

    if(
entity == -1) return;

    
PrintToServer("planted_c4 %i"entity);

    
float position[3];
    
GetEntPropVector(entityProp_Send"m_vecOrigin"position);
    
position[2] += 100.0;

    
TE_SetupSparks(positionNULL_VECTOR520);
    
TE_SendToAllInRange(positionRangeType_Visibility0.0);


Thank you!
__________________
kratoss1812 is offline
Reply


Thread Tools
Display Modes

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:14.


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