ExIm
Warming Up

Posts: 17
Registered: 09-11 |
Well, it seems my problem hasn't been solved completely yet so I come here again for advice.
Now I know that there is ThingCountSector to count number of my rockets in specific sector. My objective is to assign an ID to every rocket that has been launched (or spawned) and each one is unique. For example, when I fired the first rocket, it is assigned an ID of 1. And then if I fired another rocket, its tid will be 2, 3, 4... and so on.
I tried using while(true) loop to check at anytime new rocket will be launched. If that occur, I taught I can use Thing_ChangeID to assign the id to it. However, when I used ThingCountSector to count the rocket with new tid, it showed 0 (that's mean it fail to assign the id). I even tried to change ID of myself (Player class) before executing this script but it still failed.
FYI, I use ZDoom In UDMF format.
Last edited by ExIm on 10-21-11 at 19:18
|