Entity MaterialFlashInvoke
From CryWiki
entity:MaterialFlashInvoke(number, number, number, string [, extra args])
Description
Invokes a flash function on a material.
Arguments
- ??? (Seems to be always 0)
- Submaterial id (0-based, so if the material layer is 1 in the editor, use 0 here)
- ??? (Seems to be always 0)
- Function name
- Arguments to the function
Example
|
| |
|---|---|
| |
Notes
For this example you will need an entity with a submaterial on layer 6, which holds a flash animation.
All it will do is call 'flashFunction("argument", 123)' in the flash file so you can handle it there.
Crysis is using this to show the progress of capturing a factory in powerstruggle. (On the TV's)
