20 lines
617 B
Plaintext
20 lines
617 B
Plaintext
|
void main()
|
||
|
{
|
||
|
if(GetIsDay()) {
|
||
|
ClearAllActions(TRUE);
|
||
|
string sText;
|
||
|
sText = "AHHHHHH...THE DAY HAS CAUGHT ME!!!";
|
||
|
ActionSpeakString(sText, TALKVOLUME_TALK);
|
||
|
object oArea = GetArea (GetWaypointByTag("cg_vamp_spawnpnt"));
|
||
|
vector vPosition = GetPosition (GetWaypointByTag("cg_vamp_spawnpnt"));
|
||
|
float fOrientation = GetFacing (GetWaypointByTag("cg_vamp_spawnpnt"));
|
||
|
location lSpawn = Location (oArea, vPosition, fOrientation);
|
||
|
CreateObject(OBJECT_TYPE_PLACEABLE, "vamp_spawn2", lSpawn, TRUE);
|
||
|
SetIsDestroyable(TRUE);
|
||
|
DestroyObject(OBJECT_SELF, 2.0);
|
||
|
}
|
||
|
else {
|
||
|
// Do Nothing
|
||
|
}
|
||
|
}
|