Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 4 of 6 1 2 3 4 5 6
Re: flashlight from aum 18... [Re: molotov] #104055
01/17/07 02:14
01/17/07 02:14
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's script related, the flashlight and inventory worked perfectly. great job on the inventory by the way. so what do i do now? how can i get your script to work. i tried including it in my main, but i came up with errors. i guess i did something wrong again since i know your script works.

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

Joined: Apr 2006
Posts: 329
The problem can be about two things, or the template your using is giving problems, or you'r placing the functions and includes in the wrong way. Solving the template isn't easy, I recomment creating your own script. Anyway where do you have placed the include<flashlight.wdl>;, is it in the first lines of the first script? You could also place the include below the action with "player = me" in it. If this doesn't work, the problem is in the templates.

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

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
i placed it in my level script. its with the other includes. should i include it in my plbiped01 script?


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] #104058
01/17/07 14:35
01/17/07 14:35
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
i will be totally honest, i have no clue what to do next. i really need this flashlight script.thank you for all of your help. by the way, how did you get it to work without using a model?


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] #104059
01/17/07 15:17
01/17/07 15:17
Joined: Apr 2006
Posts: 329
M
molotov Offline
Senior Member
molotov  Offline
Senior Member
M

Joined: Apr 2006
Posts: 329
I do use a model, look a this piece of code;

function flashlight()
{
IF (player.flash_light == on)
{
player.flash_light = off;
return;
}
ELSE
{
player.flash_light = on;
ent_create("flash.mdl",player.x,flash); //here I use a model, called flash.mdl
return;
}
}

on_l = flashlight; //this calls the flashlight function.

The flashlight function creates the flash.mdl and adds the flash function to it;

Maybe you could make a small demo of your project and send it to me, so I could see your code, maybe I can find out what the problem is.

Re: flashlight from aum 18... [Re: molotov] #104060
01/17/07 16:39
01/17/07 16:39
Joined: Aug 2005
Posts: 312
Sweden
tindust Offline
Senior Member
tindust  Offline
Senior Member

Joined: Aug 2005
Posts: 312
Sweden
You have not considered using a dynamic light as flashlight?

Re: flashlight from aum 18... [Re: tindust] #104061
01/17/07 18:27
01/17/07 18:27
Joined: Apr 2006
Posts: 329
M
molotov Offline
Senior Member
molotov  Offline
Senior Member
M

Joined: Apr 2006
Posts: 329
Hey Tindust what you mean by dynamic light, I thought that every light you scripted was a dynamic light.

Re: flashlight from aum 18... [Re: molotov] #104062
01/17/07 19:58
01/17/07 19:58
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
let me ask? since the code works for your flash.mdl, how can i use it with my plbiped? can i add the script as an include with the model i am using? i am not sure how to compress files to send the demo to you, molotov. is there an alternative?

Re: flashlight from aum 18... [Re: Blink] #104063
01/17/07 20:00
01/17/07 20:00
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
wait..that was a dumb question, you cant include that kind of script like that, in plbiped duh. sorry for the noob thought.


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: molotov] #104064
01/17/07 22:39
01/17/07 22:39
Joined: Aug 2005
Posts: 312
Sweden
tindust Offline
Senior Member
tindust  Offline
Senior Member

Joined: Aug 2005
Posts: 312
Sweden
Yes, of course molotov, I was a bit unclear. What I meant was using a spotlight type dynamic light that is carried by the player. When turned on it sends a narrow cone of light from the player to wherever you aim it. It would work just like a real flashlight shining on everything within its range.

You could pick it up like before and aim it as before. Just thought I'd mention this alternative to the light wev'e been talking about here.

cheers

Page 4 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