AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   can't set entity solid :( (https://forums.alliedmods.net/showthread.php?t=270569)

JerryJerryAdios 08-23-2015 21:13

can't set entity solid :(
 
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! :3

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")


http://i61.tinypic.com/xn9nat.jpg

HamletEagle 08-24-2015 05:31

Re: can't set entity solid :(
 
You have to set a size in order to make it solid.

JerryJerryAdios 08-24-2015 09:17

Re: can't set entity solid :(
 
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"



Arkshine 08-24-2015 10:35

Re: can't set entity solid :(
 
You should use EngFunc_SetSize and you should use proper values as well.


All times are GMT -4. The time now is 22:04.

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