OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Nedal on 14 Feb 2004, 17:22:40

Title: get name
Post by: Nedal on 14 Feb 2004, 17:22:40
hi have a random script wich shoses onestart point  (startpoints are gamelogic markers)

now i want a message wich says wich marker is shoosen.
i want the name of the marker (name filed) in the message.
have no idiea how to make it
is there something like getname

Code: [Select]

StartingLocation = startingLocations Select Random _totalLocations;
PublicVariable "StartingLocation"




#Placepos

   _destination = GetPos StartingLocation
   _ort = name StartingLocation
   S1 SetPos _destination
   S2 SetPos _destination


#messages
player sidechat(format["%1",_ort])

but instead if getting in the message the text in the name field of the marker, il get "Milos Bratrunek"  and that just does not exists in any of my scripts   lol     i am confused
Title: Re:get name
Post by: rhysduk on 15 Feb 2004, 19:03:32
Has this got anything to do with Sound and Cutscenes?