Home   Help Search Login Register  

Author Topic: CamCreate helicopters  (Read 535 times)

0 Members and 1 Guest are viewing this topic.

jepo

  • Guest
CamCreate helicopters
« on: 20 Apr 2003, 14:47:27 »
Is it possible to use the camcreate command or something similar to make a helicopter be created ingame nad make it fly and shoot?

CrashnBurn

  • Guest
Re:CamCreate helicopters
« Reply #1 on: 20 Apr 2003, 18:47:46 »
First off, don't use camcreate. Use createvehicle to make new units.
Second, helicopters don't shoot by themselves so you have to create pilots to fly them and do the shooting. Here's an example-

_helo1 = "Mi24" createvehicle getpos logic1
"SoldierEPilot" createunit [getpos logic2, air1, "p1 = this", 1, "CAPTAIN"]
"SoldierEPilot" createunit [getpos logic2, air1, "p2 = this", 1, "LIEUTENANT"]
~1
p1 moveindriver _helo1
p2 moveingunner _helo1
~1
p1 domove getpos logic3
exit


logic1,2, and 3 are gamelogic units you place and name in the editor at the areas you want these things to happen. air1 is the name of a pre-existing group you use to create the pilots for. To make the pre-existing group, put a soldier in the editor, (in this case an east soldier) and give it the group name, air1 = group this; deletevehicle this. The unit won't be in the mission at the start cause you deleted it, but the group name can be used. It's easier than it looks to do all this, just takes a bit of practice.

« Last Edit: 21 Apr 2003, 06:12:29 by CrashnBurn »

jepo

  • Guest
Re:CamCreate helicopters
« Reply #2 on: 22 Apr 2003, 06:43:37 »
thanx, that helped alot