Author Topic: Get Object By name  (Read 307 times)

Legacy_Kingdom_Of_Hearts

  • Full Member
  • ***
  • Posts: 142
  • Karma: +0/-0
Get Object By name
« on: January 14, 2014, 10:48:44 pm »


                Hey there. Developing a script to ban players. I wanted to set a campaign string of their cd key without having to target.. To do this I wanted to call GetPCPublicCDKey, get that, and add it to a campaign string to check if their banned. However, I need to identify the PC by this, but there's no GetObjectByName function! 

EDIT: Figured a way around it.
               
               

               


                     Modifié par Kingdom_Of_Hearts, 14 janvier 2014 - 10:58 .
                     
                  


            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
Get Object By name
« Reply #1 on: January 14, 2014, 11:24:46 pm »


               GetName
Could be used as in GetName(oPC) when oPC is defined in client onenter, or get entering object in some predefined start area.