1. is PERCEPTION_APPEAR only sent to rules_core or can i look for that event in a creature_core script?
2. I need the player to be transported from one place to another. Are there any functions that can do this?
EVENT_TYPE_PERCEPTION_APPEAR and teleporting the player
Débuté par
gordonbrown82
, avril 19 2010 11:48
#1
Posté 19 avril 2010 - 11:48
#2
Posté 19 avril 2010 - 11:57
i found a function that could do number 2.
#3
Posté 20 avril 2010 - 12:13
no wait that function isn't a teleport function.
#4
Posté 20 avril 2010 - 12:18
I used UT_LocalJump for number two.
#5
Posté 20 avril 2010 - 12:56
that doesn't work either.
#6
Posté 20 avril 2010 - 12:32
gordonbrown82 wrote...
1. is PERCEPTION_APPEAR only sent to rules_core or can i look for that event in a creature_core script?
You can look for it in a creature_core script. That's what I have done recently in my mod. Just one detail if you are thinking about using PERCEPTION_DISAPPEAR too, this event is not fired at the same perception range defined for PERCEPTION_APPEAR. I think that I read somewhere that it has to be twice the perception range.
gordonbrown82 wrote...
2. I need the player to be transported from one place to another. Are there any functions that can do this?
UT_LocalJump() did not work for me either. Used SetPosition() instead.
Modifié par _L_o_B_o_, 20 avril 2010 - 01:52 .
#7
Posté 20 avril 2010 - 06:23
thanks.
#8
Posté 20 avril 2010 - 07:11
UT_LocalJump works fine if you use the parameters correctly (and you are jumping to a waypoint), but it's often easier to just use SetPosition. PERCEPTION_DISAPPEAR fires at 60 meters, I believe.





Retour en haut






