|
direct entity with mouse pointer?
#417172
02/09/13 16:27
02/09/13 16:27
|
Joined: Nov 2011
Posts: 29
GreenDeveloper
OP
Newbie
|
OP
Newbie
Joined: Nov 2011
Posts: 29
|
how can i direct entity with mouse pointer similar; mouse_map = "mymodel.mdl";
"Actually we are all Guybrush.." GreenDeveloper
|
|
|
Re: direct entity with mouse pointer?
[Re: MasterQ32]
#417176
02/09/13 17:04
02/09/13 17:04
|
Joined: Nov 2011
Posts: 29
GreenDeveloper
OP
Newbie
|
OP
Newbie
Joined: Nov 2011
Posts: 29
|
just take a look at mouse_ent i want do this; how can i do with mouse_ent? i 'll try vec_set but it doesnt work.
"Actually we are all Guybrush.." GreenDeveloper
|
|
|
Re: direct entity with mouse pointer?
[Re: GreenDeveloper]
#417182
02/09/13 19:28
02/09/13 19:28
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Did you fix the problem with the looped entity creation?
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: direct entity with mouse pointer?
[Re: Uhrwerk]
#417183
02/09/13 19:46
02/09/13 19:46
|
Joined: Nov 2011
Posts: 29
GreenDeveloper
OP
Newbie
|
OP
Newbie
Joined: Nov 2011
Posts: 29
|
Did you fix the problem with the looped entity creation? yes its too basic but i didnt know this function. here code:
action kutu_act()
{
player = my;
VECTOR vectord;
while(1)
{
mouse_mode = 4;
vectord.x = mouse_pos.x;
vectord.y = mouse_pos.y;
vectord.z = 200;
vec_for_screen(vectord,camera);
vec_set(player.x, vectord);
wait(1);
}
}
"Actually we are all Guybrush.." GreenDeveloper
|
|
|
Re: direct entity with mouse pointer?
[Re: GreenDeveloper]
#417186
02/09/13 20:23
02/09/13 20:23
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
What about:
action kutu_act()
{
player = my;
mouse_mode = 4;
while(1)
{
my.x = mouse_pos.x;
my.y = mouse_pos.y;
my.z = 200;
vec_for_screen(&(my->x),camera);
wait(1);
}
}
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: direct entity with mouse pointer?
#417188
02/09/13 20:54
02/09/13 20:54
|
Joined: Nov 2011
Posts: 29
GreenDeveloper
OP
Newbie
|
OP
Newbie
Joined: Nov 2011
Posts: 29
|
What about:
action kutu_act()
{
player = my;
mouse_mode = 4;
while(1)
{
my.x = mouse_pos.x;
my.y = mouse_pos.y;
my.z = 200;
vec_for_screen(&(my->x),camera);
wait(1);
}
}
hehe you 're amazing i am not good at with pointers
"Actually we are all Guybrush.." GreenDeveloper
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|