Ok, got it.
Just a lil example here:
PHP Code:
public Spawn_Object(clientid, Float:Origin[3])
{
EntIndex = CreateEntityByName("testentity");
HookEntityOutput("testentity", "test", TestEntCallback);
// when will TestEntCallback be called? & only once or continues (like a think in amxx)? its depended on what output name is right?)
// Some code dressing the object/ent...
// ...
// spawn it
SetEntDataVector(EntIndex, offset(position vector), const Float:Origin[3]);
// where can i find all offsets?
new bool:Spawnsucces = DispatchSpawn(EntIndex);
if( !Spawnsucces )
{
Spawn_Object()
}
}
public EntityOutput(const String:"test", caller, activator, Float:0.0)
{
}
I can't find anything for OnStartTouch, where can i find info on that/in what is it included?
And can i not choose coordinates to spawn the entity? like for example when a player died get his origin and spawn the entity there:
get origin vector of the player:
native GetClientAbsOrigin(client, Float:vec[3]);
but how do i set that vector as the spawnpoint for the entity, with SetEntDataVector?
__________________