Getting the Instance of an flying arrow

正在查看此主题的用户

Phaiak

Knight
Hi, how can I do this?
I tried "ti_on_init_item" and "ti_on_weapon_attack", but they do not work in this case. I thought something like "scene_spawned_item_get_instance" could do the trick, but I am not sure, if the flying arrows are spawned items...

any idea?
 
It is not possible to get the instance of a missile. It is neither an item nor a prop they are their own type. What are you trying to achieve? There may be another way of doing it.
 
You could create a scene_prop that looks like a flying arrow, spawn at agent_get_look_position, and animate where the arrow would be going. Then you can get the position of the scene_prop and set the camera to follow it. That's as close as you can get.
 
WSE may have this in the future, but right now all you can do is calculate the arrow flight path yourself.
 
后退
顶部 底部