Attaching a light to a player
by Michael S · in Torque 3D Beginner · 05/08/2013 (2:19 pm) · 6 replies
Hello again, I have a feeling this may be a simple one, but how would I go about attaching a light to a player in specific levels. So, for example I have a level called test, which I want no light attached to a player in, and another level called jimbob, which I do want a light attached to the player in. I am not sure how to make it level specific and attach it to the player. Any ideas? Thanks in advance!
About the author
#2
It may take some adjustments but, it should get you going in the right direction.
Ron
05/08/2013 (7:37 pm)
As a starting point.... www.garagegames.com/community/forums/viewthread/132893 It may take some adjustments but, it should get you going in the right direction.
Ron
#3
05/10/2013 (10:11 am)
Okay, back to work on this. I think that link and one of the links within that link will really get this going for me! I will probably make this work so that when the player enters a trigger, it sends a command to the server to turn the player light on, and when the player enters another trigger, turns the light off. Only thing I have a feeling I will have problems with is attaching the camera to the player, I will get this going and update you on what happens.. Thanks Ron!
#4
http://www.garagegames.com/community/resources/view/20898
"%this.mountobject(%light, 0, "0.05 0.68 -0.09");"
05/10/2013 (7:37 pm)
"Only thing I have a feeling I will have problems with is attaching the camera to the player,"http://www.garagegames.com/community/resources/view/20898
"%this.mountobject(%light, 0, "0.05 0.68 -0.09");"
#5
Basically, do any of you know what to change: %player.PlayerlightEnable();
to, because thats whats causing me problems, it needs to work with afx, so is it afxPlayer.PlayerlightEnable? Any help is greatly appreciated!
05/12/2013 (11:02 am)
Okay, so I am using afx 2.0 and its causing me a small issue with this. I have a feeling its pretty simple to solve. http://gyazo.com/2e3116f2adafb1f5f0ee93c7e8d82408.pngBasically, do any of you know what to change: %player.PlayerlightEnable();
to, because thats whats causing me problems, it needs to work with afx, so is it afxPlayer.PlayerlightEnable? Any help is greatly appreciated!
#6
05/12/2013 (5:36 pm)
I got it working! Thanks for the help all.. Wasn't any problem with what I mentioned lol
Torque Owner Michael S