Home   Help Search Login Register  

Author Topic: Morphing a soldier with given wp into a platoon of tanks?  (Read 1288 times)

0 Members and 1 Guest are viewing this topic.

Offline Malm

  • Members
  • *
  • I'm a llama!
Is it possible to change one type of unit into another type or create new units using createvehicles that followes the originally unit's waypoints?

I got a soldier with a set of waypoints that when he arrives at his wp(1) trigger a script that creates four T-55.

I want that soldier to either become assigned to or getinas commander and then have the newly spawned tanks to follow the rest of his waypoint.

Also what happens to a units waypoints after he was assigned to a group if he is deleted soon after?

"t55 = group this; this exec "delete.sqs"

delete.sqs:
~2
deletevehicle _this

Can other units be assigned to that group and what happens if you use [t55, 3] SetWpPos ... after he was deleted?

I have tried and tried but my T-55 wont move a square after they have been created !


Best regards
-Malm


« Last Edit: 11 Apr 2005, 14:45:38 by Malm »

Silencer

  • Guest
Re:Morphing a soldier with given wp into a platoon of tanks?
« Reply #1 on: 11 Apr 2005, 19:37:14 »
I thought that u can only create empty vehicles, so they can not move to waypoints :(

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Morphing a soldier with given wp into a platoon of tanks?
« Reply #2 on: 11 Apr 2005, 19:41:42 »
Yes, createvehicle creates empty vehicles only.

You would need to create units (Using createUnit) to crew the tanks with and then get them to board as crewmen.


Planck
I know a little about a lot, and a lot about a little.

Offline Malm

  • Members
  • *
  • I'm a llama!
Re:Morphing a soldier with given wp into a platoon of tanks?
« Reply #3 on: 11 Apr 2005, 21:55:02 »
Ok sorry my fault I didn't mention that part.

:
:
"SoldierGcrew" CreateUnit [getpos _zSpawnpos, _theGrp, "", 1, "CORPORAL"]
"SoldierGcrew" CreateUnit [getpos _zSpawnpos, _theGrp, "", 1, "CORPORAL"]
_array = units _theGrp

_tank = "T55" CreateVehicle getpos _zSpawnpos
_array select _i moveindriver _tank
_array select (_i + 1) moveingunner _tank



-Malm