Is it an event that I need script to get spiders to appear from the ceiling, as in the game?
Spiders spawn from nowhere
Débuté par
Sonmeister
, mai 01 2010 07:25
#1
Posté 01 mai 2010 - 07:25
#2
Posté 01 mai 2010 - 07:43
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.
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
Posté 01 mai 2010 - 08:36
oSpider = UT_GetNearestObjectByTag(GetMainControlled(), "my_spider_tag");
WR_SetObjectActive(oSpider, TRUE);
WR_SetObjectActive(oSpider, TRUE);
#4
Guest_dewkl_*
Posté 01 mai 2010 - 11:17
Guest_dewkl_*
You might want to add: PlaySoundSet(oSpider,SS_COMBAT_ATTACK,1.0f);
If you want to make it play a sound when appearing.
If you want to make it play a sound when appearing.
Modifié par dewkl, 01 mai 2010 - 11:18 .
#5
Posté 02 mai 2010 - 04:56
Nope, not necessary. The code I gave triggers the default appear animation which has the appropriate sounds already attached.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.
#6
Posté 02 mai 2010 - 01:02
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
Posté 02 mai 2010 - 09:37
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
Dragon, Normal
Arcane Horror
Rage Demon
Shade
Ash Wraith
Deepstalker
Spider, Corrupted
Spider, Giant
Spider, Poisonous
Dragon, High
Broodmother Tentacle
Archdemon (Wounded)
Archdemon
#8
Posté 03 mai 2010 - 12:49
oh, yes i forgot about APR_base.... thanks





Retour en haut






