Trace Actor 만들기

반응형
상위 링크 : http://udn.epicgames.com/Three/DevelopmentKitGemsKR.html
참조 링크 : http://udn.epicgames.com/Three/DevelopmentKitGemsIteratorKismetNodesKR.html


Trace Start와 Trace End 사이로 트레이스를 수행하는 엑터 만들기.



class SeqAct_TraceActors extends SequenceAction;

var() class<Actor> ActorClass;
var() bool AlwaysClearObjectList;
var() Vector TraceStart;
var() Vector TraceEnd;
var() Vector TraceExtent;

ForEach WorldInfo.TraceActors(ActorClass, Actor, HitLocation, HitNormal, TraceEnd, TraceStart, TraceExtent)
          {
            SeqVar_ObjectList.ObjList.AddItem(Actor);
          }

defaultproperties
{
  ObjName="Trace Actors"
  ObjCategory="Iterators"
  InputLinks(0)=(LinkDesc="In")
  OutputLinks(0)=(LinkDesc="Out")
  VariableLinks.Empty
  VariableLinks(0)=(ExpectedType=class'SeqVar_ObjectList',LinkDesc="Out Objects",bWriteable=true)
  VariableLinks(1)=(ExpectedType=class'SeqVar_Vector',LinkDesc="Trace Start",PropertyName=TraceStart)
  VariableLinks(2)=(ExpectedType=class'SeqVar_Vector',LinkDesc="Trace End",PropertyName=TraceEnd)
  VariableLinks(3)=(ExpectedType=class'SeqVar

 

 

_Vector',LinkDesc="Trace Extent",PropertyName=TraceExtent)
}


눈에 띄는건 TraceActors 정도...
아래와 같은 맵을 만들어서 줄하나 이으면 결승점 같은 걸로 써도 될듯.ㅇㅇ.


'Unreal > Unreal Script' 카테고리의 다른 글

Particle, SoundCue 추가방법  (0) 2011.11.24
뮤테이터(Mutator) 끼워넣기  (0) 2011.11.18
Touching Actors 만들기  (0) 2011.09.22
Radial Actor 만들기  (0) 2011.09.22
Child Actor 만들기  (0) 2011.09.22
TAGS.

Comments