Explosion...
Posted: Tue Jul 22, 2014 1:03 pm
Is it possible to fire Explode at entity env_explosion?
I tried to use explosion from TempEntities, but it looks very different from the env_explosion one.
How to make TempEntities.explosion particles and the "black circle on the ground" like in env_explosion? And for some reason it doesn't make any damage to player...
I tried to use explosion from TempEntities, but it looks very different from the env_explosion one.
Syntax: Select all
from effects import TempEntities
from engines.server import EngineServer
from events import Event
from filters.recipients import RecipientFilter
from mathlib import Vector
from players.helpers import playerinfo_from_userid
@Event
def player_say(event):
userid = event.get_int('userid')
text = event.get_string('text')
if text == 'run':
info = playerinfo_from_userid(userid)
position = info.get_abs_origin()
TempEntities.explosion(RecipientFilter(), 0.0, position, -1, 0.0, 0, 8, 150, 400, Vector(), 67)
How to make TempEntities.explosion particles and the "black circle on the ground" like in env_explosion? And for some reason it doesn't make any damage to player...