I have an NPC that I want to run to a waypoint and then fade away.
I used Rubber_SetHome and Rubber_GoHome to send him to the waypoint.
Now what do I do to check and make sure he is there before I make him fade? Also, how do I make him fade?
Thanks!
How do you check to see if an NPC is home?
Débuté par
PavelNovotny
, févr. 16 2010 04:28
#1
Posté 16 février 2010 - 04:28
#2
Posté 16 février 2010 - 07:27
put a trigger around the waypoint and let it do the job.
#3
Posté 16 février 2010 - 08:35
PavelNovotny wrote...
I have an NPC that I want to run to a waypoint and then fade away.
Well, if you can't place a trigger and are limited to scripting, you could probably use the COMMAND_COMPLETE creature event to trigger some code after the issued movement command, eventually checking the distance between the current location and the waypoint. (or GetRoamLocation() for the set home location)
#4
Posté 16 février 2010 - 04:05
GetDistanceBetweenLocations?
#5
Posté 16 février 2010 - 04:30
If the NPC isn't coming back you could use UT_ExitDestroy. It handles the detection for you.





Retour en haut






