Entity.MarkShadowAsDirty
From GMod Wiki
| Function | |
| Syntax | Entity:MarkShadowAsDirty( ) |
| Description: | |
| Refreshes the shadow of the entity | |
| Returns: | nil |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.MarkShadowAsDirty]Entity.MarkShadowAsDirty [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Refreshes all shadows on the map |
|---|---|
| Used on | |
| Code | for k,v in pairs(ents.FindByClass("prop_*")) do v:MarkShadowAsDirty() end |
| Output | All props now have shadows they should. |
See Also
Additional Notes
- This function is useful when, for example, you have used SetModelScale on an entity and want the shadow to appear normal without waking up the entity.