Home   Help Search Login Register  

Author Topic: createunit help  (Read 772 times)

0 Members and 1 Guest are viewing this topic.

marcus3

  • Guest
createunit help
« on: 01 Nov 2005, 22:23:35 »
what is the name of the Sport car and Other cars in ofp? like p3scive and stuff? i need it for the createunit command
thanks!

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:createunit help
« Reply #1 on: 01 Nov 2005, 22:29:03 »
I don't know but I can tell you an easy way to find out.  Go into the editor and put on the map the unit you want.  Save the mission, then look in mission.sqm

marcus3

  • Guest
Re:createunit help
« Reply #2 on: 02 Nov 2005, 11:37:26 »
 :P  :o  ;D

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:createunit help
« Reply #3 on: 02 Nov 2005, 16:03:36 »
 :thumbsup:

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:createunit help
« Reply #4 on: 02 Nov 2005, 23:30:04 »
Also bear in mind the easier way :

Code: [Select]
Hint Format ["%1", typeof this]
...in the init line of the given unit ;).

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:createunit help
« Reply #5 on: 02 Nov 2005, 23:35:38 »
That is neat.  But you can't then copy and paste to yor own script

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:createunit help
« Reply #6 on: 03 Nov 2005, 00:01:42 »
That's totally right. But you can them come up with outrageously cool lines of code, as gaudy as they're useless :

Code: [Select]
MySpawnedCar=format ["%1", typeof MyCoolCarOnTheMap] CreateVehicle getpos parking
 :beat:

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:createunit help
« Reply #7 on: 03 Nov 2005, 00:09:32 »
 ;D ;D

marcus3

  • Guest
Re:createunit help
« Reply #8 on: 05 Nov 2005, 06:03:20 »
-----the following is a joke------------

see admin? why add the solve butten? if i had clicked it we would never have got this awsome info!


-------no more joke------------------------

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:createunit help
« Reply #9 on: 05 Nov 2005, 11:34:50 »
Lol true, true ... that's why its always a good idea to leave a thread open for a day or two before solving it.   You never know what gems may appear.
Plenty of reviewed ArmA missions for you to play