Raised This Month: $ Target: $400
 0% 

can't set entity solid :(


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JerryJerryAdios
Member
Join Date: Jun 2015
Location: the universe
Old 08-23-2015 , 21:13   can't set entity solid :(
Reply With Quote #1

i have set the entity as solid_bbox but it still doesn't block any entity else

is there anything wrong with my code Thanks!

PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < engine >

new TM[33]

public 
plugin_init( )
{
register_clcmd("tt""test")
}

public 
test(id)
{
new 
Floatorg[3]
TM[id] = create_entity"env_model" );
engfunc(EngFunc_SetModelTM[id], "models/player/X/TimeMachine.mdl")
set_pev(TM[id], pev_solidSOLID_BBOX)
entity_set_int(TM[id], EV_INT_sequence2)
pev(idpev_originorg)
set_pevTM[id], pev_originorg)
}

public 
plugin_precache()
{
precache_model("models/player/X/TimeMachine.mdl")

__________________
This is a Super Awesome Asking Guy! Don't mind alright? Just be cool!
JerryJerryAdios is offline
Send a message via Skype™ to JerryJerryAdios
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-24-2015 , 05:31   Re: can't set entity solid :(
Reply With Quote #2

You have to set a size in order to make it solid.
__________________
HamletEagle is offline
JerryJerryAdios
Member
Join Date: Jun 2015
Location: the universe
Old 08-24-2015 , 09:17   Re: can't set entity solid :(
Reply With Quote #3

it's still not solid.. is there any way else

PHP Code:
#include < amxmodx > 
#include < fakemeta > 
#include < engine > 

new TM[33

public 
plugin_init( ) 

register_clcmd("tt""test"


public 
test(id

new 
Floatorg[3
TM[id] = create_entity"env_model" ); 
engfunc(EngFunc_SetModelTM[id], "models/player/X/TimeMachine.mdl"
set_pevTM[id], pev_size, {500.0,500.0,500.0}, {500.0,500.0,500.0})
set_pev(TM[id], pev_solidSOLID_BBOX
entity_set_int(TM[id], EV_INT_sequence2
pev(idpev_originorg
set_pevTM[id], pev_originorg


public 
plugin_precache() 

precache_model("models/player/X/TimeMachine.mdl"

__________________
This is a Super Awesome Asking Guy! Don't mind alright? Just be cool!

Last edited by JerryJerryAdios; 08-24-2015 at 09:19.
JerryJerryAdios is offline
Send a message via Skype™ to JerryJerryAdios
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-24-2015 , 10:35   Re: can't set entity solid :(
Reply With Quote #4

You should use EngFunc_SetSize and you should use proper values as well.
__________________
Arkshine 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 22:04.


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