AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cant detach model (pev_aiment) (https://forums.alliedmods.net/showthread.php?t=250169)

avril-lavigne 10-19-2014 12:33

cant detach model (pev_aiment)
 
need help
dont work
model still on player

PHP Code:

          new flagct find_ent_by_class(-1ctflag)
      if(
is_valid_ent(flagct))
      {           
        
set_pev(flagctpev_aiment, -1)
        
set_pev(flagctpev_movetypeMOVETYPE_NONE)                
      } 


avril-lavigne 10-19-2014 18:08

Re: cant detach model (pev_aiment)
 
solved
PHP Code:

new Float:fVelocity[3], Float:fOrigin[3]
              
entity_get_vector(idEV_VEC_originfOrigin)
              
fOrigin[0] += 15    
              VelocityByAim
(id130fVelocity
          
              
set_pev(flagct,pev_movetype,MOVETYPE_TOSS)
         
set_pev(flagct,pev_aiment,0)
         
set_pev(flagct,pev_solid,SOLID_TRIGGER)         
         
entity_set_origin(flagctfOrigin


Natsheh 10-22-2014 10:25

Re: cant detach model (pev_aiment)
 

Huh solved?
Really?

You know if you knew the
Problem from the first time why did you post it?
And why you ask for help?

hleV 10-23-2014 08:49

Re: cant detach model (pev_aiment)
 
Quote:

Originally Posted by Natsheh (Post 2214435)

Huh solved?
Really?

You know if you knew the
Problem from the first time why did you post it?
And why you ask for help?

He had a problem, solved it himself later and provided the solution in case anybody else ever needs it. What's your problem?


All times are GMT -4. The time now is 17:32.

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