Throwing a light
by AndrewOsborne · in · 10/03/2006 (2:26 pm) · 6 replies
Hi Guys,
I am trying to make a torch object (medieval burning stick not a flashlight)
i am using the crossbow as a base, and mounting the light to the mountpoint on my playermodel.
(i would like to mount to a mountpoint on the weapon(image) but this isnt critical)
when throwing the item, i need the light to stay with/on the torch(crossbow) does anyone have any ideas how to go about doing this, is it possible without a major rewrite?
Kind Regards,
Andrew.
I am trying to make a torch object (medieval burning stick not a flashlight)
i am using the crossbow as a base, and mounting the light to the mountpoint on my playermodel.
(i would like to mount to a mountpoint on the weapon(image) but this isnt critical)
when throwing the item, i need the light to stay with/on the torch(crossbow) does anyone have any ideas how to go about doing this, is it possible without a major rewrite?
Kind Regards,
Andrew.
#3
I'm really looking forward to TGE 1.5, to see what all the TLK is capable of first-hand :)
10/03/2006 (9:17 pm)
I have absolutely no idea :)I'm really looking forward to TGE 1.5, to see what all the TLK is capable of first-hand :)
#4
10/03/2006 (10:44 pm)
Im not washing my car, as i assume it will do it for me. Honestly this pack rocks :)
#5
10/05/2006 (10:32 am)
The light is actually attached to the player, so it won't automatically follow the thrown object, however if you change the throw script so the player's light is attached to the newly create thrown weapon it will work.
#6
10/16/2006 (3:56 pm)
Is that because in the players hand the weapons is an image and in the world it is an object?
Torque 3D Owner Ken Matlock
hasLight = true;
lightRadius = 4;
lightColor = "0.5 0.5 0.25";
In the starter.fps/server/scripts/crossbow.cs you should see that in the following datablock:
datablock ProjectileData(CrossbowProjectile)
Thaqt should get ya started :)