Home   Help Search Login Register  

Author Topic: createunit syntax  (Read 447 times)

0 Members and 1 Guest are viewing this topic.

Rokket

  • Guest
createunit syntax
« on: 24 Mar 2004, 13:26:25 »
I can create a unit, but I'm trying to set a specific face and I think I've messed up the syntax. I've got:

"uce_r_kuffiyasoldier" createunit [getpos enforce, def, "joe=this; this setface face23"]; deletevehicle dud

I've experimented with quotes and semi-colons and commas. I either get a regular soldier, or I get error msg.  ( know the first part is Positio, then Group, then oninit, but I'm not sure how to combine the giving name with the setface...What am I doing wrong?

Thanks,

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:createunit syntax
« Reply #1 on: 24 Mar 2004, 13:47:55 »
"uce_r_kuffiyasoldier" createunit [getpos enforce, def, "joe=this; this setface {face23}"]; deletevehicle dud

Try it now  :)
Not all is lost.

Rokket

  • Guest
Re:createunit syntax
« Reply #2 on: 25 Mar 2004, 08:09:58 »
Thanks for the help Artak, but I get whatever face, not the specific one I'm after. No error msg tho!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:createunit syntax
« Reply #3 on: 25 Mar 2004, 09:19:56 »
I have a feeling the face numbers are offset by 1 - try 22 and 24.
Plenty of reviewed ArmA missions for you to play

Rokket

  • Guest
Re:createunit syntax
« Reply #4 on: 31 Mar 2004, 09:02:13 »
Ahh, I will give that a try.

My "low-tech:" solution is to add the setface outside the createunit syntax: just after all that, put unitname and setface. It works.

Thanks guys.