32 lines
1.7 KiB
Plaintext
32 lines
1.7 KiB
Plaintext
void main()
|
|
{
|
|
{int nRandom = d12(1);
|
|
if (nRandom == 1){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_01")), TRUE);}
|
|
else if (nRandom == 2){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_02")), TRUE);}
|
|
else if (nRandom == 3){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_03")), TRUE);}
|
|
else if (nRandom == 4){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_04")), TRUE);}
|
|
else if (nRandom == 5){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_05")), TRUE);}
|
|
else if (nRandom == 6){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_06")), TRUE);}
|
|
else if (nRandom == 7){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_07")), TRUE);}
|
|
else if (nRandom == 8){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_08")), TRUE);}
|
|
else if (nRandom == 9){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_09")), TRUE);}
|
|
else if (nRandom == 10){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_10")), TRUE);}
|
|
else if (nRandom == 11){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_11")), TRUE);}
|
|
else if (nRandom == 12){
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "woodgrate", GetLocation(GetWaypointByTag("TRAP_PT_12")), TRUE);}
|
|
}
|
|
SetIsDestroyable(TRUE);
|
|
DelayCommand(1.0, DestroyObject(OBJECT_SELF));
|
|
}
|