Raised This Month: $ Target: $400
 0% 

Explode an entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 08-08-2013 , 08:12   Explode an entity
Reply With Quote #1

How to explode a custom entity by a command?

PHP Code:
new entity

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /beep""boom")
    
register_clcmd("say /set""drop")
    
// Add your code here...
}
public 
drop()
{
    
entity create_entity("info_target")
    
entity_set_string(entityEV_SZ_classname"bomb_entity")
    
entity_set_model(entityg_c5_model[2])    
    
entity_set_size(entityFloat:{-2.5, -2.5, -1.5}, Float:{2.52.51.5})
    
entity_set_int(entityEV_INT_solid2)
    
entity_set_int(entityEV_INT_movetype6)
    
entity_set_vector(entityEV_VEC_originvOrigin)
}
public 
boom()
{
    
//explode an entity

Randomize is offline
 


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 15:45.


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