Is there any way to get this to work? Theory is self-explainitory.
Touched isn't being called on surfaces, which I want it to.
------------------
The Sniper Missions. Current project, The Sniper Missions
The Magician Saber System.
[This message has been edited by Descent_pilot (edited February 13, 2003).]
Code:
# Jedi Knight Cog Script
#
# BULLET.COG
#
# Create a bullethole on a surface, projectile class cog.
#
# [DP]
#
symbols
message touched
message created
int source local
template bh=+testhole
end
# ========================================================================================
code
Created:
CaptureThing(GetSenderRef());
Return;
Touched:
source = GetSourceRef();
If(GetSenderType() == 6)
CreateThingAtPos(bh, GetThingSector(source), GetThingPos(source), GetSurfaceNormal(GetSenderRef()));
Return;
endTouched isn't being called on surfaces, which I want it to.
------------------
The Sniper Missions. Current project, The Sniper Missions
The Magician Saber System.
[This message has been edited by Descent_pilot (edited February 13, 2003).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms
Completed
Judgement Day (HLP), My level pack
SATNRT, JK Pistol Mod, Aliens TC, Firearms
Completed
Judgement Day (HLP), My level pack
) It will only be called if the projectile hits a thing.![http://forums.massassi.net/html/wink.gif [http://forums.massassi.net/html/wink.gif]](http://forums.massassi.net/html/wink.gif)
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)

![http://forums.massassi.net/html/biggrin.gif [http://forums.massassi.net/html/biggrin.gif]](http://forums.massassi.net/html/biggrin.gif)