Home   Help Search Login Register  

Author Topic: giving the loons names...  (Read 506 times)

0 Members and 1 Guest are viewing this topic.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
giving the loons names...
« on: 18 Dec 2004, 16:23:30 »
i'm creating new soldiers using <createunit> but need to give them names to be accessed via script - or any other command for that matter. how do i do this?

i had thought it would be as simple as

Code: [Select]
newsoldier = "SoldierWB" createUnit [getPos bert, groupAlpha]
enemy1 dofire newsoldier

but not so it seems. or is it?

 ???

Offline MI_Fred

  • Members
  • *
  • AA
    • OFP Team Finlanders
Re:giving the loons names...
« Reply #1 on: 18 Dec 2004, 16:39:19 »
Code: [Select]
"SoldierWB" createUnit [getPos bert, groupAlpha,"newsoldier1=this",1,"PRIVATE"]

So almost as simple as you though. That's the init line of the createUnit command where you must name the new guy.
There's gooks over there, there's mines over there, and watch out those goddamn monkeys talk, I'll bite ya.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:giving the loons names...
« Reply #2 on: 18 Dec 2004, 16:42:39 »
 >ping< wee lightbulb switches on over bedges' head.

thanks.

actually, that solves two problems come to think of it. so again, thanks ;)