Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Light Issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 07-06-2017 , 08:40   [ H3LP ] Light Issue
Reply With Quote #1

Hello. So I am trying to light an entity without adding lights outside of it. Everytime I execute this the server crashes. Any ideas? I can confirm that the entity is valid.

Code:
public lights_task(ent) {     static Float:origin[3];     static iOrigin[3];         pev(ent, pev_origin, origin)         FVecIVec(origin, iOrigin)         message_begin( MSG_BROADCAST, SVC_TEMPENTITY );     write_byte(TE_ELIGHT)     write_coord(iOrigin[0]); // x     write_coord(iOrigin[1]); // y     write_coord(iOrigin[2]); // z     write_coord(50); // radius     write_byte(255); // r     write_byte(0); // g     write_byte(0); // b     write_byte(25); // life <<<<<<<<     write_coord(0); // decay rate     message_end()     set_task(1.0, "lights_task", ent) }

Last edited by DarthMan; 07-06-2017 at 10:59. Reason: Solved
DarthMan is offline
 



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 23:10.


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