Attach Dynamic Light to Model
Hello thar! I'm trying to attach a dynamic light to a model so that they light will move around with the model, but it's not attaching to the model when I try setparent. Both entities spawn, but the light just won't attach to the prop I spawned. Can anyone spot what I may be doing incorrectly or give some pointers? Here's my code:
Code:
new String:target_entityCoord[50]; |
Re: Attach Dynamic Light to Model
I also tried to dispatch key value parentname on the light and that didn't seem to do anything either.
|
Re: Attach Dynamic Light to Model
Give the smoke grenade a targetname.
e.g Code:
new String:targ[64]; Code:
AcceptEntityInput(target_flareIndex, "SetParent", targ); |
Re: Attach Dynamic Light to Model
Quote:
Code:
new String:target_entityCoord[50]; |
Re: Attach Dynamic Light to Model
Does that even compile?
PHP Code:
|
Re: Attach Dynamic Light to Model
OMFG, I love you! That was exactly what I needed to get it to work. :D
10 million internets to you! |
All times are GMT -4. The time now is 05:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.