|
Re: Play wav file
[Re: Lawrence]
#122798
04/12/07 13:42
04/12/07 13:42
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Hi!
write the line player=me; topmost of your models action.
If "player" is used by an other model you have to create an own pointer for your model, e.g.: entity* my_player; write the line my_player=me; topmost of your models action and replace all "player" with "my_player" in the music-scripts above.
The best is you learn to understand how to work with pointer/handles/entities/...
|
|
|
Re: Play wav file
[Re: Lawrence]
#122801
04/12/07 17:33
04/12/07 17:33
|
Joined: Jul 2002
Posts: 4,436 Germany, Luebeck
Xarthor
Expert
|
Expert
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
|
No the pointer is actually: plBiped01_entity At least thats what I see from looking at the plBiped01.wdl file. Edit: Code:
// set global player biped entity pointer to this object plBiped01_entity = me;
Thats the important line in the PlBiped01 action, as you can see it uses the entity pointer plBiped01_entity to refer to itself on a global level.
Last edited by Thunder; 04/12/07 17:34.
|
|
|
|