Gamestudio Links
Zorro Links
Newest Posts
How to Change Multiplier
by vicknick. 06/02/23 03:27
How to buy tomorrow at open?
by vicknick. 06/02/23 03:19
Adding Position to Current Trade
by vicknick. 06/02/23 03:09
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (vicknick, 7th_zorro, Quad), 1,020 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 2 of 6 1 2 3 4 5 6
Re: flashlight from aum 18... [Re: aztec] #104035
01/04/07 15:40
01/04/07 15:40
Joined: Aug 2003
Posts: 2,008
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,008
Bucharest, Romania
Maybe you didn't add the "player = my;" line of code to your player script. As an alternative, you can comment the "while (player == null) {wait (1);}" line of code from Molotov's script.

Re: flashlight from aum 18... [Re: George] #104036
01/05/07 08:02
01/05/07 08:02
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
okay I thought of that too now I´ll try
Regards
Aztec


Visit:
schwenkschuster-design.de
Re: flashlight from aum 18... [Re: molotov] #104037
01/13/07 01:36
01/13/07 01:36
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
question Molotov...i used your script and i get an error when i am on the level. when i press l, it says: Empty pointer in flashlight: (player.flash_light==on). am i missing something?

Re: flashlight from aum 18... [Re: Blink] #104038
01/13/07 08:50
01/13/07 08:50
Joined: Apr 2006
Posts: 329
M
molotov Offline
Senior Member
molotov  Offline
Senior Member
M

Joined: Apr 2006
Posts: 329
You did put the following lines in your script;
"define flash_light skill96;"
and have this "player = me;" in your player code.
and do still have this line in the beginning of the flashlight code,
"while (player == null) {wait (1);}"

Re: flashlight from aum 18... [Re: molotov] #104039
01/13/07 15:51
01/13/07 15:51
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
the code i am using is the plbiped01 code. i added the "player = my;" in the line of code. but i still get errors when i press L to turn on the light. i used the code exactly as you wrote it, with the "while (player == null);. should it say "player = me;?

Re: flashlight from aum 18... [Re: Blink] #104040
01/14/07 11:47
01/14/07 11:47
Joined: Apr 2006
Posts: 329
M
molotov Offline
Senior Member
molotov  Offline
Senior Member
M

Joined: Apr 2006
Posts: 329
Hey Blink, changing player == my in to player == me, doesn't really change anything. When I'll have some time I will try to see if I can get plbiped01 to work with my flashlight code. In the mean time maybe placing a proc_late inside the flash function would work.

Re: flashlight from aum 18... [Re: molotov] #104041
01/14/07 14:38
01/14/07 14:38
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
thanks, i discovered no change when i changed me and my,lol. where do i put proc_late?

Re: flashlight from aum 18... [Re: Blink] #104042
01/14/07 14:54
01/14/07 14:54
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
here is the flash function:


function flash()
{
var temp2;
while (player == null) {wait (1);}
my.passable = on;
my.invisible = on;
my.lightred = 250;
my.lightgreen = 250;
my.lightblue = 170;
while(player.flash_light == on)
{
my.lightrange = 100;
temp.x = max_dist * cos(player.pan) * cos(player.tilt) + player.x;
temp.y = max_dist * sin(player.pan) * cos(player.tilt) + player.y;
temp.z = max_dist * sin(player.tilt) + player.z;
trace_mode = ignore_models + use_box;
vec_for_vertex(temp2,player,711);
my.skill1 = trace (temp2, temp);
if (my.skill1 != 0)
{
temp.x = (my.skill1 - 30) * cos(player.pan) * cos(player.tilt) + player.x;
temp.y = (my.skill1 - 30) * sin(player.pan) * cos(player.tilt) + player.y;
temp.z = (my.skill1 - 30) * sin(player.tilt) + player.z;
vec_set (my.pos, temp);
}
wait(1);
}
my.lightrange = 0;
ent_remove(me);
}
{
proc_late(); // not sure if this is right lol
...
}


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: flashlight from aum 18... [Re: Blink] #104043
01/14/07 17:47
01/14/07 17:47
Joined: Apr 2006
Posts: 329
M
molotov Offline
Senior Member
molotov  Offline
Senior Member
M

Joined: Apr 2006
Posts: 329
No, proc_late should be about here;
function flash()
{
var temp2;
proc_late;
while (player == null) {wait (1);}
........

But don't know if it works.
Anyway do you also have placed "define flash_light skill96;" at the top of the script?

Re: flashlight from aum 18... [Re: molotov] #104044
01/14/07 21:59
01/14/07 21:59
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
it didnt work, still the same error. i am not sure whats causing the issue. have any other ideas?

Page 2 of 6 1 2 3 4 5 6

Moderated by  George 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1