Aller au contenu

Photo

Multiple tag error?


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

#1
The Great Thief

The Great Thief
  • Members
  • 16 messages
I have a bit of a weird problem. I'm trying to use heartbeats on spawned-in creatures. It's like this:

I have "Beneficial" creatures that cast spells on a light shaft, right? Blue light shaft for Beneficial (red for detrimental). You use a rune which is like a summoning stone, and you call the creature in. Now, I have this creature set to cast Healing Circle once every round, for 10 rounds then it dies. It was working fine for a while, until... the rage began.

I added another light-shaft, same tag, in a completely different map. If I drop the creature on the second map where the second light shaft is, the creature responds to it by casting the spells properly. But it completely ignores the first one now. These objects have the same exact tag.

Anyone have an idea on how I could make this work? ;x

#2
Fester Pot

Fester Pot
  • Members
  • 1 394 messages
Without seeing the script, guessing is our next best thing.

Use GetNearestObjectByTag("TAG_HERE") instead of GetObjectByTag("TAG_HERE").

FP!

Modifié par Fester Pot, 08 septembre 2010 - 07:56 .


#3
The Great Thief

The Great Thief
  • Members
  • 16 messages
I'll try that. ;o Thanks.