Skip to content

Instantly share code, notes, and snippets.

@JoinedSenses
Created July 9, 2019 16:32
Show Gist options
  • Save JoinedSenses/25301c18ea0a3a056288740fb6b736ef to your computer and use it in GitHub Desktop.
Save JoinedSenses/25301c18ea0a3a056288740fb6b736ef to your computer and use it in GitHub Desktop.
spawn example
#include <sdktools>
// somefunction with a bunch of code
int entity = CreateEntityByName("ent_snowball_pile");
if (entity == -1) {
return;
}
float origin[3];
GetEntPropVector(client, Prop_Send, "m_vecOrigin", vec);
DispatchSpawn(entity);
TeleportEntity(entity, origin, NULL_VECTOR, NULL_VECTOR);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment