Home   Help Search Login Register  

Author Topic: Createunit on a roof  (Read 814 times)

0 Members and 2 Guests are viewing this topic.

Mox2002

  • Guest
Createunit on a roof
« on: 19 Jun 2005, 03:08:33 »
Is this possible at all?

I want a unit to be created on top of a roof from a building.
When I place it there in the editor via setpos it works but
whatever I try to do with CreateUnit, nothing happens...
the unit spawns but getting it on the roof is an entirely different matter.

Here's what I've tried sofar:

Code: [Select]
"SoldierEB" CreateUnit [[13719.5,11609.6,5.2], Group Player, {SpawnUnit = this}, 1];[SpawnUnit] join grpNull
doesnt work

Code: [Select]
"SoldierEB" CreateUnit [[13719.5,11609.6,5.2], Group Player, {SpawnUnit = this}, 1];[SpawnUnit] join grpNull
SpawnUnit setpos [(getpos this select 0) +13719.5 ,(getpos this select 1) +11609.6 , (getpos this select 2) +5.5]

doesnt work either

and all the inbetweens with getmarkerpos and gamelogics turned
out a zip aswell.

Plz help

Mox2002

  • Guest
Re:Createunit on a roof
« Reply #1 on: 19 Jun 2005, 03:20:06 »
Nevermind,

FYI:

Code: [Select]
SpawnUnit setPos [(getpos r1 select 0), (getpos r1 select 1), (getpos r1 select 2) +5.5]
works.
Where SpawnUnit is the CreateUnit created Unit (eh...strange sentence) and r1
can be anything from a marker to a battlecruiser.


« Last Edit: 19 Jun 2005, 03:21:52 by Mox2002 »