Home   Help Search Login Register  

Author Topic: CreateUnit Help!  (Read 1700 times)

0 Members and 1 Guest are viewing this topic.

Offline RolsRois

  • Members
  • *
  • I'm not sure of who i am anymore
    • Rambm Workshop
CreateUnit Help!
« on: 28 Oct 2005, 22:17:40 »
Hello folks, so this is the problem... im not so fimiliar with the CreateUnit Command, and i need help.

if i want an object, let's call it object, so how do i make it to setpos getpos the player, CREATE IT not setpos getpos something that exits, and the player's name is dude, how do i create it next to the player? i need the full script line not an explanation please  ;D
Rambm Workshop, A New way of playing OFP
http://www.freewebs.com/rambm/
yes its on freewebs! Got a problem?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:CreateUnit Help!
« Reply #1 on: 28 Oct 2005, 22:51:38 »
if you could explain a little more clearly, perhaps it would be easier to help.  :-\

Dane

  • Guest
Re:CreateUnit Help!
« Reply #2 on: 29 Oct 2005, 10:28:12 »
Do you mean something like this?

Code: [Select]
soldierWB createunit [getPos dude, dudesGroup, "dude2=this", 1, "CORPORAL"]
or

objectname camCreate getPos dude?
« Last Edit: 29 Oct 2005, 10:31:36 by DaneDK »

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:CreateUnit Help!
« Reply #3 on: 29 Oct 2005, 12:47:25 »
your original post refers to the createunit command but the item that you want to create is referred to as "object

If the item is a soldier unit then createunit is the correct command to use

however if the object is indeed an object such as an ammo crate or a vehicle, then you need to use the createvehicle command
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:CreateUnit Help!
« Reply #4 on: 29 Oct 2005, 13:43:15 »
Say U want an ammocrate next to your player:

Code: [Select]
_MyNewCrate="Reammoboxwest" createvehicle getpos player
Next step:

Code: [Select]
_MyNewCrate="Reammoboxwest" createvehicle [getpos player select 0,getpos player select 1]
Now U can adjust the position of your crate:

Code: [Select]
_MyNewCrate="Reammoboxwest" createvehicle [(getpos player select 0)+10,(getpos player select 1)-20]
To find out the Type of the object:Put your object in the editor with this initline:

Code: [Select]
hint format ["%1",TypeOf this]

http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Offline RolsRois

  • Members
  • *
  • I'm not sure of who i am anymore
    • Rambm Workshop
Re:CreateUnit Help!
« Reply #5 on: 29 Oct 2005, 21:21:46 »
I Solved this one out, but i need more help folks.
i need to addaction to the unit im creating, the cow
this is the command that works:
Code: [Select]
"Mig_Cow" createunit [getpos seller1, east1,"", 1, "LIEUTENANT"]but i need to put between the "" this addaction ["Milk","milk.sqs"]
but i can't, cause it makes errors, so how can i addaction?
Rambm Workshop, A New way of playing OFP
http://www.freewebs.com/rambm/
yes its on freewebs! Got a problem?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:CreateUnit Help!
« Reply #6 on: 29 Oct 2005, 23:59:22 »
Code: [Select]
"Mig_Cow" createunit [getpos seller1, east1,"this addaction [{Milk},{milk.sqs}]", 1, "LIEUTENANT"]
untested.

Offline RolsRois

  • Members
  • *
  • I'm not sure of who i am anymore
    • Rambm Workshop
Re:CreateUnit Help!
« Reply #7 on: 30 Oct 2005, 12:49:45 »
THANK U BEDGES THANK U THANK U THANK U! UR A LIFE SAVER!
Rambm Workshop, A New way of playing OFP
http://www.freewebs.com/rambm/
yes its on freewebs! Got a problem?