Hi
I made an entity and several TE_BEAMPOINT messages, and i was wondering how i can change the origins of the beams every second. Or delete 1 and make a new one on a random origin. I use this to make them:
PHP Code:
beamorigin(Ent, random_num(-6400, 6400), random_num(-6400, 6400), random_num(-6400, 6400), BeamSpr, 1.0, 15.0, 50.0, random_num(1.0, 10.0), 5.0, random_num(1, 255), random_num(1, 255), random_num(1, 255), 200, 50)
stock beamorigin(ent, origin1, origin2, origin3, sprite, startframe, fps, life, width, amp, red, green, blue, bright, scroll)
{
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
write_byte(TE_BEAMENTPOINT)
write_short(ent)
write_coord(origin1)
write_coord(origin2)
write_coord(origin3)
write_short(sprite)
write_byte(startframe)
write_byte(fps)
write_byte(life)
write_byte(width)
write_byte(amp)
write_byte(red)
write_byte(green)
write_byte(blue)
write_byte(bright)
write_byte(scroll)
message_end()
}
__________________