Aller au contenu

Photo

Spiders spawn from nowhere


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

#1
Sonmeister

Sonmeister
  • Members
  • 167 messages
Is it an event that I need script to get spiders to appear from the ceiling, as in the game?

#2
Nattfodd

Nattfodd
  • Members
  • 321 messages
If your problem is "when" spiders must spawn, the solutions could be many: a trigger, an event, at end of a dialog or cutscene etc.

If your problem is from "where" they must spawn, the events are not involved. I think that maybe you need to add a specific move command to queue commands of spiders.

I don't know what is the right command.

#3
Craig Graff

Craig Graff
  • Members
  • 608 messages
oSpider = UT_GetNearestObjectByTag(GetMainControlled(), "my_spider_tag");

WR_SetObjectActive(oSpider, TRUE);


#4
Guest_dewkl_*

Guest_dewkl_*
  • Guests
You might want to add: PlaySoundSet(oSpider,SS_COMBAT_ATTACK,1.0f);

If you want to make it play a sound when appearing.

Modifié par dewkl, 01 mai 2010 - 11:18 .


#5
Craig Graff

Craig Graff
  • Members
  • 608 messages

dewkl wrote...

You might want to add: PlaySoundSet(oSpider,SS_COMBAT_ATTACK,1.0f);

If you want to make it play a sound when appearing.

Nope, not necessary. The code I gave triggers the default appear animation which has the appropriate sounds already attached.

#6
Nattfodd

Nattfodd
  • Members
  • 321 messages

Craig Graff wrote...

oSpider = UT_GetNearestObjectByTag(GetMainControlled(), "my_spider_tag");
WR_SetObjectActive(oSpider, TRUE);


good to know. there is a list of default action for creatures like this you talked about?

#7
Craig Graff

Craig Graff
  • Members
  • 608 messages
Sure. Look below. (based on bHasAppearAnimation in APR_base.xls)



Dragon, Normal

Arcane Horror

Rage Demon

Shade

Ash Wraith

Deepstalker

Spider, Corrupted

Spider, Giant

Spider, Poisonous

Dragon, High

Broodmother Tentacle

Archdemon (Wounded)

Archdemon


#8
Nattfodd

Nattfodd
  • Members
  • 321 messages
oh, yes i forgot about APR_base.... thanks ;)