UE3 - UT3 Spawning a Pawn

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

PredAlien

New Member
Mar 19, 2006
18
0
0
Hey,

how do you summon a Pawn in game e.g. a Pawn i've created called 'MyPawn'

i know how to summon vehicles but i cant figure out how to summon Pawns

thanks!
 

PredAlien

New Member
Mar 19, 2006
18
0
0
oh so something like.... summon PackageName.MyPawn ????

because at the moment i have a numplayers set to 1 (and im the only one in the game)

cheers
 
Last edited:

badkangaroo

New Member
Jul 23, 2008
19
0
0
do you mean in script or in kismet?
because you could do something like.

Sphere.uc:
Code:
class Sphere extends Actor;

event PostBeginPlay()
{
`log("------------->I'm a Sphere<-------------");
}


defaultproperties
{
	Begin Object class=StaticMeshComponent Name=Thing
		StaticMesh=StaticMesh'EngineMeshes.Sphere'//a mesh of a sphere.
		Scale=1.000
		HiddenGame=false
	End Object
	Components.Add(Thing)
}
then in your game.uc or any other pawn you can add in

Code:
event PostBeginPlay()
{
	super.PostBeginPlay();
	Spawn(class'Sphere'); //this will spawn your sphere.
}