• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

squad name (Top Level)

Hi,
I am wondering how to set the name of a unit so that it shows up at the top of the tree. All I seem to get is Unit listed there (or Item). I have looked at other files that incorperate this behaviour and found nothing that helps.

Thanks.
 
Within a script, you will start out in some appropriate context, such as an option or a unit. From there, you'll transition to the "squad" context. Then you can access the name of the squad to set it appropriately. For example, if you start in a unit script context and want to set the name of the squad to the name of the unit, it might look like below:

squad.name = name
 
Back
Top