OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: cid228 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 !!!
-
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
-
Thanks Death !
IÂ'll try it that way, if i figure out how to get it out of the string that is ! =)