Jump to content

Ped Spawn RDR1


Recommended Posts

Symbolic

Hello people, does anybody know how to spawn an ACTOR just next to me in ScriptHookRDR? I've been trying but i just could make it with fixed coords, that's what i have. Best regards

 

	Vector3 coords = { -2171.0f, 23.0f, 2592.0f };
	int actorEnum = 631;
	Vector2 spawnXY = { coords.x + 2.0f, coords.y + 2.0f };
	float spawnZ = coords.z;

	Actor newActor = OBJECT::CREATE_ACTOR_IN_LAYOUT(
		OBJECT::GET_AMBIENT_LAYOUT(),
		"",
		actorEnum,
		spawnXY,
		spawnZ,
		Vector2(0.0f, 0.0f),
		0.0f
	);

 

Link to comment
https://gtaforums.com/topic/1001196-ped-spawn-rdr1/
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.