D.murphy man 0 Posted July 28, 2003 Hey all, Recently i have been working on a project on the side.(After eden life went down the plug hole). It is a RTS style game,and i have made the command system.But i have a extreamly strange proplem.I am useing makrers witch follow the leader of the squad around.So i can keep track of them on the map.But as the command system iv created means that I become leader of the squad wen i select them,let me try explain. In the action menu you have a list of your squads,Alpha,Bravo,ect.. When you select Alpha it will kick any men in your squad out and add the men in alpha squad to your squad,and if u select Bravo vise versa. But this seems to have a very strange effect on the markers.I have this simple loop for keeping track of Bravo and Alpha.<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#start "Bravomrk" setmarkerpos getpos (leader Bravo) "alphamrk" setmarkerpos getpos (leader Alpha) ~1 goto "start"But it seems that when i select one of the squds the maker dosent like the fact that im the commander and the marker disspears.Even when i deselect the squad the mark dose not return.I presume the maker has gone to some far flung corner of the map.Since i remember reading about somthing on these forums,witch stated that markers cannot be deleted in game. So any body have any suggestios? Note:Originaly i wanted to have the markers just saty at there current posistion when i become leader.So then i know where the squad is if im on one end of the island and there on the other,But then i noticed this proplem so i took all that bit out thinking it was causesing this strange proplem but even with this simplere script it still happens! P.S.If you can fix this is there any way of making the marker stay where it is before i cam commander insted of it going straight to my posistion? Thnx, Murphy. O00o0oo new Smilies Share this post Link to post Share on other sites
crashdome 3 Posted July 28, 2003 When using the "join" command, which is what I believe you are doing... you have "Bravo" join your group. In essence, Bravo team is eliminated as a group. Likewise, when you kick your guys out (again assuming you use "grpNull") it creates a new group (i.e. Charlie Black).... If I am wrong, I still think that you are losing track of the group names somehow and "Bravo" and "Alpha" become non-existant. The best way is to capture an object("specific unit") into a variable before you kick them out... then assign them to the marker after you kick them out. Using Join command can mess with the groups. Share this post Link to post Share on other sites
D.murphy man 0 Posted July 28, 2003 Aha! i hit upon this as wel,and now at the end of the join script i just made the gys being kicked out back into Alpha again. Simply by Alpha=group Alp.But this has made a new proplem! If Alp (the name of the orginal leader) Is killed then it will not wokr So i am trying to simpley make a script that detects if Alp is killed then make the new leader Alp. Now it should look somthing along the lines of: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?(!alive Alp) : Alp=(leader alpha) But nothing iv tried so far seems to work  any suggestions? Edit. Never mind i found much easyer way of going about all this,thnx ne ways Share this post Link to post Share on other sites
Placebo 29 Posted July 29, 2003 Please refrain from using profanity in topic titles, "it's not big and it's not clever"â„¢ Share this post Link to post Share on other sites