Hi,
I have a NPC. if I place that NPC in my map the NPC will go to the WP. However, If I spawn that NPC with a trigger or a script the NPC just stands there... nothing happens..whats the problem here anyone know? I came here after spending way to much time trying to get this to work. Can anyone help?
Regards,
Spawned NPCs do not go to next WP
Débuté par
Monkworks
, mars 09 2011 12:11
#1
Posté 09 mars 2011 - 12:11
#2
Posté 09 mars 2011 - 02:15
You need most likely to activate the WP script post spawn-in, with something like a delay command after OnEnter. I am not a scripter of merit (or at all, really) but that sounds about right from all the reading in the forums I have been doing over the last 6 years.
dunniteowl
dunniteowl
#3
Posté 09 mars 2011 - 02:41
Are you sure the tag of the blueprint is the same as the tag of the NPC you place? There must be some difference.
#4
Posté 09 mars 2011 - 02:57
dunniteowl - I am not 100% sure you can do that but I will try. Onenter would be a channel for that area, but is there an Onenter channel within the NPC? I dont have the tool set with me right now to look. If there is.. this will work: why delay just go to the next waypoint..I will script some thing for this. mainly i just wanted some feed back to make sure this is not a known issue of some kind.
Kaldor Silverwand - the blueprint and the tag are the same..thanks thats where I thought I went wrong..but was not the case.
Is there an Onenter with in the NPC?
Kaldor Silverwand - the blueprint and the tag are the same..thanks thats where I thought I went wrong..but was not the case.
Is there an Onenter with in the NPC?
#5
Posté 09 mars 2011 - 07:22
NPCs or any creature do not have an onenter. DNO was referring to the trigger that spawns the NPC.
Perhaps by putting a DelayCommand() on your waypoint handling script (segment) would help in Action Queue commands getting passed over in the spawn due to the speed of the executing script. A Delay would insure the script has time to fire and then make the NPC move to the WP.
Perhaps by putting a DelayCommand() on your waypoint handling script (segment) would help in Action Queue commands getting passed over in the spawn due to the speed of the executing script. A Delay would insure the script has time to fire and then make the NPC move to the WP.
#6
Posté 09 mars 2011 - 02:24
Morbane- thanks that makes sense. I guess I missed what dunniteowl was implying. Still begs the question, why does the NPC placed in the area seem to engage the WP where as the spawned NPC seems to ignore to WP? I even tried uncommented -NW_FLAG_IMMOBILE_AMBIENT_ANIMATIONS SetSpawnInCondition NW_FLAG_AMBIENT_ANIMATIONS, with no affect NPC just hangs..
Once I am back from holiday. I will test out the delay idea suggested.Thanks again.
Once I am back from holiday. I will test out the delay idea suggested.Thanks again.
#7
Posté 09 mars 2011 - 04:22
Yeah, like I said, I'm no scripter. I have found that my ignorant ramblings, if correct or close help out and if wrong, bring in a swift bevy of responses from folks who do know what they're talking about. So it's a win-win in my book.
dno
dno





Retour en haut






