Aller au contenu

Photo

GetName( waypoint ) returns empty string


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
FalloutBoy

FalloutBoy
  • Members
  • 580 messages
GetTag( waypoint ) works fine, but GetName( waypoint ) no workie. There is also no way that I can see to attach any data to a waypoint other than the tag. What are the chances someone from BW can make GetName work?

Why do I need this, you ask?

I have a set of waypoints that I want to attach some script behavior. They all have the same tag so that I can tell them apart from other waypoints, but now I can't tell them apart from each other. Yes I could tag them special_1, special_2, etc. but then I can't use the super-cool GetObjectsInArea function without manually looping and doing string comparisons.

#2
georage

georage
  • Members
  • 247 messages
use the orientation and z-height as ways to obtain parseable values?



i am using the orientation of WPs to determine spawn distance.

#3
FalloutBoy

FalloutBoy
  • Members
  • 580 messages
Clever. I was sort of hoping to use the orientation and z-height for orientation and z-height. But I will consider it. I can't imagine adding a GetName function for waypoints would take more than 10 minutes of someone's time though.


#4
georage

georage
  • Members
  • 247 messages
You must not work for a corporation :)

#5
Axe_Murderer

Axe_Murderer
  • Members
  • 279 messages
10 minutes to implement, 10 weeks to test and verify.