OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: marcus3 on 01 Nov 2005, 22:23:35

Title: createunit help
Post by: marcus3 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!
Title: Re:createunit help
Post by: THobson 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
Title: Re:createunit help
Post by: marcus3 on 02 Nov 2005, 11:37:26
 :P  :o  ;D
Title: Re:createunit help
Post by: THobson on 02 Nov 2005, 16:03:36
 :thumbsup:
Title: Re:createunit help
Post by: Igor Drukov 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 ;).
Title: Re:createunit help
Post by: THobson on 02 Nov 2005, 23:35:38
That is neat.  But you can't then copy and paste to yor own script
Title: Re:createunit help
Post by: Igor Drukov 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:
Title: Re:createunit help
Post by: THobson on 03 Nov 2005, 00:09:32
 ;D ;D
Title: Re:createunit help
Post by: marcus3 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------------------------
Title: Re:createunit help
Post by: macguba 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.