SDA_Lakuti
09-29-2000, 05:33 PM
I am trying to make a cog that will kill the player, make him invisible, and create templates when he is hit by a specific template... I tried to make a cog for this.. but i have very little cog knowledge. I tried to tag this onto the shot template.. it didn't work.. here's what i had:
#
# ROCKET.COG
#
# Blows character to little bits if hit with rocket.
#
symbols
thing victim local
template carnage=+carnage local
template blood1=+blood local
template blood2=+blood2 local
sound splat=landhard01.wav
message touched
end
# ================================================== ======================================
code
touched:
PlaySoundThing(splat, victim, 1, -1, -1, 0);
if (victim != -1)CreateThing(carnage, victim);
if (victim != -1)CreateThing(blood1, victim);
if (victim != -1)CreateThing(carnage, victim);
if (victim != -1)CreateThing(blood2, victim);
KillPlayer(victim, 0);
SetThingGeoMode(victim, 0);
return;
# ================================================== ======================================
end
If anyone knows how to do this. Please help me. I am in need of it.
------------------
SDÅ_Lªkútí
[This message has been edited by SDA_Lakuti (edited September 29, 2000).]
#
# ROCKET.COG
#
# Blows character to little bits if hit with rocket.
#
symbols
thing victim local
template carnage=+carnage local
template blood1=+blood local
template blood2=+blood2 local
sound splat=landhard01.wav
message touched
end
# ================================================== ======================================
code
touched:
PlaySoundThing(splat, victim, 1, -1, -1, 0);
if (victim != -1)CreateThing(carnage, victim);
if (victim != -1)CreateThing(blood1, victim);
if (victim != -1)CreateThing(carnage, victim);
if (victim != -1)CreateThing(blood2, victim);
KillPlayer(victim, 0);
SetThingGeoMode(victim, 0);
return;
# ================================================== ======================================
end
If anyone knows how to do this. Please help me. I am in need of it.
------------------
SDÅ_Lªkútí
[This message has been edited by SDA_Lakuti (edited September 29, 2000).]