Hi,
ich habe einen Script geschrieben wo man verschiedene Sachen bauen kann. Und wollte dann die Entitys auf Click und Touch reagieren lassen. Aber es funktioniert nur wenn die Camera nah am Objekt ist. Da aber die Camera bei mir in 2000 Quants Höhe ist funktionierts nicht.
Hi,
I've write a script with that you can build some things. And I've write that the entitys work when you click on them. But it only work when the camera is not far away from the objects. But the camera is in a height of 2000 quants and so it does'nt work.
Here is the code:
function remove_fnct()
{
if(event_type==event_click)
{
if(mouse_map==bomb)
{
snd_play(bumm,100,0);
sleep(1);
ent_remove(me);
return;
}
else
{
return;
}
}
if(event_type==event_touch)
{
my.ambient=100;
my.transparent=on;
}
if(event_type==event_release)
{
my.ambient=0;
my.transparent=off;
}
}
action ...
{
...
my.enable_click=on;
my.enable_touch=on;
my.enable_release=on;
my.event=remove_fnct;
...
}
Does someone have an idea how it work when the camera is in a height of 2000 quants?
My English is'nt thery good

Gruß Flori