Aller au contenu

Photo

EVENT_TYPE_PERCEPTION_APPEAR and teleporting the player


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

#1
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
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?

#2
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
i found a function that could do number 2.

#3
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
no wait that function isn't a teleport function.

#4
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
I used UT_LocalJump for number two.

#5
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
that doesn't work either.

#6
_L_o_B_o_

_L_o_B_o_
  • Members
  • 117 messages

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
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
thanks.

#8
Craig Graff

Craig Graff
  • Members
  • 608 messages
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.

#9
Proleric

Proleric
  • Members
  • 2 352 messages

Craig Graff wrote...
UT_LocalJump works fine if you use the parameters correctly (and you are jumping to a waypoint)...


... given sufficient tweaking?