AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   explode entity on touch (https://forums.alliedmods.net/showthread.php?t=232188)

ezio_auditore 12-26-2013 22:32

explode entity on touch
 
how to make an entity explode when it touch a player or a wall...
i guess this line is to be written in plugin init
PHP Code:

register_touch("entity_touch","*","functionname"

but i don't know that much pawn..
so, help :)

DavidJr 12-26-2013 23:06

Re: explode entity on touch
 
Use te_explosion in that function

ezio_auditore 12-27-2013 00:35

Re: explode entity on touch
 
Quote:

Originally Posted by DavidJr (Post 2076858)
Use te_explosion in that function

can you detail more

DavidJr 12-27-2013 10:59

Re: explode entity on touch
 
This is an example for explosion message:

PHP Code:

    message_begin(MSG_BROADCASTSVC_TEMPENTITYiOrigin)
    
write_byte(TE_EXPLOSION)
    
write_coord(iOrigin[0])
    
write_coord(iOrigin[1])
    
write_coord(iOrigin[2])
    
write_short(explode)
    
write_byte(30)
    
write_byte(15)
    
write_byte(0)
    
message_end() 

More detail: https://forums.alliedmods.net/search.php

ezio_auditore 12-27-2013 11:08

Re: explode entity on touch
 
please consider this post mate!! :)


All times are GMT -4. The time now is 10:05.

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