Coding

 Reply to this postStart new topic

Laser

Michael.Knight1
post May 16 2012, 05:21 PM
Post #1


Member

Posts: 130
From: Germany
Joined: 24-March 12



Hello Gel People , I Try to create new knight rider car laser with th flash light , but i has problem in the RGB Color , I Will Use The Green & The Red . Green For KARR & RED For KITT The script is work but i wanna just the RBG For Green & Red , i didn't knew but i use this and everyone white with any Code !!
CODE
09E5: create_flash_light_at 2@ 3@ 4@ RGB_mask $1 $2 $3 radius 500.0
06C1: create_searchlight 1@ on_car 0@ with_offset 0.0 5.0 -0.5 radius 8@ target 5@ 6@ 7@ radius 8@


Red Laser :
CODE
$1 = 231
$2 = 3
$3 = 3

Green Laser !
CODE
$1 = 0
$2 = 128
$3 = 0


Picture About The Laser yucky.gif


This post has been edited by Michael.Knight1: May 16 2012, 05:24 PM


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
badboy
post May 16 2012, 05:35 PM
Post #2


Trained Member

Posts: 76
From: Nederland, NL
Joined: 1-May 12



Don't use globals. Especially $1, $2 and $3. It's a miracle that your game didn't crash.
Go to the top of the page
 
+Quote Post
Michael.Knight1
post May 16 2012, 06:15 PM
Post #3


Member

Posts: 130
From: Germany
Joined: 24-March 12



QUOTE (badboy @ May 16 2012, 05:35 PM) *
Don't use globals. Especially $1, $2 and $3. It's a miracle that your game didn't crash.

badboy i put the globals just to show you the rgb color ( green and red ), to dont writing a gain the opcode .

This post has been edited by Michael.Knight1: May 16 2012, 06:40 PM


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
Deji
post May 16 2012, 06:41 PM
Post #4


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



No idea what you're asking here :/


--------------------
Go to the top of the page
 
+Quote Post
Michael.Knight1
post May 16 2012, 06:48 PM
Post #5


Member

Posts: 130
From: Germany
Joined: 24-March 12



QUOTE (Deji @ May 16 2012, 06:41 PM) *
No idea what you're asking here :/

my problem is the RBG Light Color , While I add the color red or green , etc ... , everyone i show it white ?? . see this pictures :



--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
Deji
post May 16 2012, 06:58 PM
Post #6


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



You can't change searchlight RGB via SCM.


--------------------
Go to the top of the page
 
+Quote Post
Michael.Knight1
post May 16 2012, 07:03 PM
Post #7


Member

Posts: 130
From: Germany
Joined: 24-March 12



QUOTE (Deji @ May 16 2012, 06:58 PM) *
You can't change searchlight RGB via SCM.

With What can i changer it " Effect " ?? I can find the searchlight in the texture { partile , etc ... ) confused.gif

This post has been edited by Michael.Knight1: May 16 2012, 07:05 PM


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
Deji
post May 16 2012, 09:52 PM
Post #8


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



You can try to create your own particle in effects.fxp, but there's only a few guys in the modding community who even know how to edit the file well and take full advantage of the features and they've not even managed to get lasers perfect using it (with lasers going on until collision). The only way is by using SA's other particle systems which aren't accessible via SCM alone.


--------------------
Go to the top of the page
 
+Quote Post
Michael.Knight1
post May 16 2012, 10:29 PM
Post #9


Member

Posts: 130
From: Germany
Joined: 24-March 12



QUOTE (Deji @ May 16 2012, 09:52 PM) *
You can try to create your own particle in effects.fxp, but there's only a few guys in the modding community who even know how to edit the file well and take full advantage of the features and they've not even managed to get lasers perfect using it (with lasers going on until collision). The only way is by using SA's other particle systems which aren't accessible via SCM alone.

effect.fxp , ok i will try , i can to do the effect , for me is very simple , you knew also i design Viper Static Pulse effect & Firehawk Electric Pulse , anyways thanks and peace thumbsup.gif


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: