Bruce
Active member
I am trying to use the script below, but it has never worked for me for some reasons.
My game resolution is 960 x 544.
Either this spawn0("SummonX", 200, 50, 0);
or this @cmd spawn0 "SummonX" 200 50 0
NEVER WORKED!
The only thing that has worked:
Even so it still does not make sense to me as SummonX spawns
at about X: 50 Y: 10 to the left side of the player instead of
at X:900 Y:1000 to the right side of the player (if I understood it correctly).
I can't see SummonX on the screen if I use this code, WHY???:
My goal is to be able to use Bloodbane's script.
Can someone please please help?
Thank you so much
Script by Bloodbane
from: Spawn01 Script
My game resolution is 960 x 544.
Either this spawn0("SummonX", 200, 50, 0);
or this @cmd spawn0 "SummonX" 200 50 0
NEVER WORKED!
The only thing that has worked:
Code:
anim freespecial9
summonframe 1 900 0 1000 0
custentity SummonX
.....
.....
Even so it still does not make sense to me as SummonX spawns
at about X: 50 Y: 10 to the left side of the player instead of
at X:900 Y:1000 to the right side of the player (if I understood it correctly).
I can't see SummonX on the screen if I use this code, WHY???:
Code:
anim freespecial9
summonframe 1 0 0 0 0
custentity SummonX
.....
.....
My goal is to be able to use Bloodbane's script.
Can someone please please help?
Thank you so much
Script by Bloodbane
from: Spawn01 Script
Code:
void spawn0(void vName, float fX, float fY, float fZ)
{
//Spawns entity at defined coords
//
//vName: Model name of entity to be spawned in.
//fX: X coordinate
//fY: Y height from ground
//fZ: Z coordinate
void self = getlocalvar("self"); //Get calling entity.
void vSpawn; //Spawn object.
clearspawnentry(); //Clear current spawn entry.
setspawnentry("name", vName); //Acquire spawn entity by name.
vSpawn = spawn(); //Spawn in entity.
changeentityproperty(vSpawn, "position", fX, fZ, fY); //Set spawn location.
return vSpawn; //Return spawn
}