I believe that the corona structs only work for static coronas. Your corona isn't created in world coordinates so
| CODE |
if 0045: 26@ == 11@ // (float) then |
will always return false.
What you can do is get the radius, type, flare, and RGB of the corona struct and check if they match the same as values in your created corona.
Or you can download DK22Pac's NewOpcodes (
http://www.gtaforums.com/index.php?showtopic=518780) and use this opcode:
| CODE |
0D54: draw_corona_with_extra_params_texture CORONASTAR color 255 255 255 255 on_entity 0 at 0@ 1@ 2@ size 0.5 far_clip 150.0 near_clip 1.5 flare 0 enable_reflection 1 check_obstacles 0 flash_while_fading 0 fade_speed 15.0 only_from_below 0
|
Someone correct me if I've given incorrect information.