Larsey123IsMe
Unregistered
How to make an light? like this:
HERE. That tree have an red light or something in the center of the tree
I want to know how to make:
- Red Lights
- Orange Lights
- Yellow Lights
- White Lights
Check out MTA map editor, to view all objects, else try the wiki..
Posts: 454
Threads: 6
Joined: Apr 2010
Reputation:
0
Those white ones are 'bollardlight''s
Do the red ones flash? Then they runway_(something)
Posts: 1,130
Threads: 77
Joined: Jan 2010
Reputation:
0
They are objects, search for them.
Larsey123IsMe
Unregistered
20.11.2010, 01:39
(
Последний раз редактировалось Larsey123IsMe; 20.11.2010 в 02:08.
)
Emm, Is it possible to make an script like this?
/RedLightOn - Turns the red light on
/RedLightOff - Turns the red light off
This is just something i just guessed; It is wrong xD
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_RED 0xFF0000AA
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/redlighton",cmdtext,true))
{
SetLight(COLOR_RED, X, Y, Z,); //Just Guessed
SetLight(COLOR_RED, X, Y, Z,); //Just Guessed
SetLight(COLOR_RED X, Y, Z,); //Just Guessed
return 1;
}
return 0;
}
PS:
I have searched at wikipedia but i dident find anything.
Posts: 12
Threads: 3
Joined: Nov 2010
Quote:
Originally Posted by Goobiiify
No, it's not possible. Listen on previous speakers, they're objects so you need something like " CreateObject(ID,X,Y,Z,rX, rY,rZ); " instead.
|
There is a way of achieving what he wants. You would just need to create the objects that emit lights then assign there ID to a variable then upon wanting to turn them off destroy the objects and when wanting to turn them back on re-create the objects.
Larsey123IsMe
Unregistered
Quote:
Originally Posted by ChristopherM
There is a way of achieving what he wants. You would just need to create the objects that emit lights then assign there ID to a variable then upon wanting to turn them off destroy the objects and when wanting to turn them back on re-create the objects.
|
can you make it? LoL, i am best at making MAPS not stuff like this :P
Posts: 12
Threads: 3
Joined: Nov 2010
I don't even know what the object ID's for the lights are and what vectors you want them at. I could take a swing at it if you would supply me the coordinates of all the objects including the lights, tree and the object ids.
Larsey123IsMe
Unregistered
Quote:
Originally Posted by ChristopherM
I don't even know what the object ID's for the lights are and what vectors you want them at. I could take a swing at it if you would supply me the coordinates of all the objects including the lights, tree and the object ids.
|
IDK The light objects
pawn Код:
CreateObject(654,2082.11523438,1683.27722168,9.82031250,0.00000000,0.00000000,0.00000000); //The Tree
CreateObject(RED LIGHT,2085.16723633,1684.56921387,26.80032921,0.00000000,0.00000000,0.00000000); //Red light
CreateObject(WHITE LIGHT,2086.15234375,1680.94458008,25.95033455,0.00000000,0.00000000,0.00000000); //White Light
CreateObject(BLUE LIGHT,2081.89843750,1683.52148438,31.32027435,0.00000000,93.99996948,349.99993896); //Blue Light
CreateObject(YELLOW LIGHT,2078.42724609,1681.82885742,23.70031929,0.00000000,0.00000000,0.00000000); //Yellow Light