Maybe some one could help with this the compass in aum 45 I put the wdl in my program and it show up ok on the screen but the needle does not move. Was I to add something else to my program as it did not say to? thanks
Re: help with the compass in aum 45
[Re: Shelley]
#256747 03/18/0919:2403/18/0919:24
It did not work I put in a watch for needle roll it said 0.00 one for my.pan and one for my and player it said not avalable for the three I put the player=my in the main while loop also I am useing a6 plus I made the test level useing the shooter then add it after. When I press the f11 key I do see the pan working from 0 to 360 I also did a step trace it does not seem to go past the while(!) player==null and if I rem it out it says its an empty pointerin set compass needle.roll = -player.pan; if this helps
Re: help with the compass in aum 45
[Re: Shelley]
#256810 03/19/0907:2503/19/0907:25
First of all, your line should be while (!player) {wait (1);} or while(player == null) {wait (1);} Then, you should put the line I've told you about inside your player action.
Re: help with the compass in aum 45
[Re: George]
#256902 03/19/0913:4103/19/0913:41
I am Sorry but I am not understand you on this. If I don't get it this time I won't bother you again with it is this what you you are saying
action player_comp() { player = my; }
I put the action player_Comp in the test level before the main
I put the player_comp() in several different place not all at once from the one post you said it should go below the while (player == null) {wait (1);} the only place that it is the starter set_compass so I put player_comp(); there nothing happened then I put it in the test level main while loop again nothing and the watch still says its not avilable and the step trace if i place it on the while(1) or needle.roll when it hits that while (player line it just stays there as it still is null I know it is something stupid I am doing wrong but I can't figure what Thanks for you time and I am sorry to be a pain
Re: help with the compass in aum 45
[Re: George]
#257137 03/20/0918:0803/20/0918:08
I am Sorry but I am not understand you on this. If I don't get it this time I won't bother you again with it is this what you you are saying
action player_comp() { player = my; }
I put the action player_Comp in the test level before the main
I put the player_comp() in several different place not all at once from the one post you said it should go below the while (player == null) {wait (1);} the only place that it is the starter set_compass so I put player_comp(); there nothing happened then I put it in the test level main while loop again nothing I know it is something stupid I am doing wrong but I can't figure what Thanks for you time and I am sorry to be a pain
Re: help with the compass in aum 45
[Re: Shelley]
#257171 03/21/0903:3703/21/0903:37
Don't worry, you aren't bothering me at all. Your project should contain a player action - it's the action attached to your player model in Wed. Go to that model and get the name attached to it - let's say it's "my_player". Now search the script(s) until you find this action; let's say that it looks like this:
action my_player() { .... }
now put the line of code I've told you about inside the action:
action my_player() { player = my; .... }
That's all.
Re: help with the compass in aum 45
[Re: George]
#257272 03/22/0904:1603/22/0904:16