1 registered members (TipmyPip),
18,484
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: sound code
[Re: aslam]
#75493
06/06/06 16:42
06/06/06 16:42
|
Joined: Aug 2002
Posts: 673 Las Cruces, NM
JimFox
User
|
User
Joined: Aug 2002
Posts: 673
Las Cruces, NM
|
Hello, I think your problem is with my.skill1. It is initially set for 200. It runs once and is set to 0. Naturally, it will not work the second time you come near. If you want it to do this every time you come near, you have to set it to 200 again when you reach a distance greater than 200. So put in a line that resets it to 200 when the distance between camera.x (or player.x) and my.x is >300. I think that solves your problem with a lack of repeatability. Regards, Jim
Jim
|
|
|
Re: sound code
[Re: xXxGuitar511]
#75495
06/06/06 19:55
06/06/06 19:55
|
Joined: Jul 2002
Posts: 4,436 Germany, Luebeck
Xarthor
Expert
|
Expert
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
|
Quote:
Just want to ask you that why it is not working with A6 templates, any suggestions about it??
Yeah I have a suggestion: the A6 templates do not use the player as pointer to the player's model. Instead they use plBiped01_entity as pointer, so just replace "player" with "plBiped01_entity" and it should work.
|
|
|
Re: sound code
[Re: Xarthor]
#75496
06/06/06 20:42
06/06/06 20:42
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
ah ha...
Thankz Thunder for that info. I never use templates, so I had forgotten about the GUID's used in the A6 templates...
And becuase "player" is predefined by the engine, it wouldn't produce an error.
xXxGuitar511 - Programmer
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|