Home   Help Search Login Register  

Author Topic: Variablename becoming "Variablename" marker ?!  (Read 401 times)

0 Members and 1 Guest are viewing this topic.

cid228

  • Guest
Variablename becoming "Variablename" marker ?!
« on: 28 May 2004, 11:18:02 »
Hey guys and girls, have had a troublesome 24 hours and just cant get my head around one thing.
Lets say I have a plane named Plane and a marker named "Plane", I just want to get access to Plane object, and "Plane" marker in script but with just one variable in the executor.

[plane] exec "../plane.sqs"

I tried :

_planemarker = format ["%1",_this select 0]

just to get the name into quotes, but then it returns -- WEST Alpha Black:1 --
,wich is not what im looking for.

[plane,"plane"] exec "../plane.sqs"   is not an option !

If anyone  have a clue what im talking about and have some kind of solution to it, please do type it down and reply !!!

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Variablename becoming "Variablename" marker ?!
« Reply #1 on: 28 May 2004, 15:58:58 »
You need to do it the other way around.

Pass the string "plane" to the script and convert it from
string to object name.

Pane is only a reference to the unit itself, therefor it returns west alpha black 1 when trying to convert it to stringname.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

cid228

  • Guest
Re:Variablename becoming "Variablename" marker ?!
« Reply #2 on: 30 May 2004, 09:58:56 »
Thanks Death !

IÂ'll try it that way, if i figure out how to get it out of the string that is ! =)