I've spent plenty of hours trying to make a damned function yesterday, in order to advance with my "Lock on System", but there is no way to actually find the function in UDK that actually get the location, I ve looked so much into the Seq_Act GetLocation AndLocation, but there is no actual function in there. I also spent hours looking into GetTargetLocation, just to discover that wanst what I bought it was. I'll be honest after 6 hours of trying doing stuff and not getting anything out of it, I got really pissed.
I ve posted a question in the UDK forum trying to get some answer back, or at least some one that say something, (http://forums.epicgames.com/threads/853767-Target-lock-system-get-location-of-a-volume-in-ureal-script) so now I'm waiting. In the meanwhile, I wrote another small script in order to have a tidier developing process, creating a new volume named "TargetVolume", making it available in the editor, and using those just for my "Lock On system". (It also premise me to not get mad and destroy my computer due to the constant failures)
This is the code:
//========================================================================
// Target Volume
//========================================================================
class TargetVolume extends Volume
showcategories(Movement)
placeable;
/** Is the volume enabled by default? */
var() bool bEnabled;
/**
* Overriden to set the default collision state.
*/
simulated event PostBeginPlay()
{
Super.PostBeginPlay();
SetCollision(bEnabled, bBlockActors);
}
defaultproperties
{
bStatic=false
bAlwaysRelevant=true
bReplicateMovement=true
bOnlyDirtyReplication=true
RemoteRole=ROLE_None
bColored=true
BrushColor=(R=255,G=0,B=0,A=255)
bEnabled=true
}
Nessun commento:
Posta un commento