Hello,
I want to make a lamp for UCSO, like UCGO lamp:
How to do that? I am using a beacon and a spotlight, but that didn't light the ground.
This is the code I am using:
I want to make a lamp for UCSO, like UCGO lamp:
How to do that? I am using a beacon and a spotlight, but that didn't light the ground.
This is the code I am using:
Code:
spotLightStruct.spotLight = static_cast<SpotLight*>(AddSpotLight({0,0.91,0}, {1,1,1}, 200, 1, 0, 5e-5, 15 * RAD, 20 * RAD, { 1,1,1,0 }, { 1,1,1,0 }, { 0,0,0,0 }));
spotLightStruct.color = { 1,1,1 };
spotLightStruct.pos = {0, 0.91, 0}
spotLightStruct.beaconSpec = {
BEACONSHAPE_STAR,
&spotLightStruct.pos,
&spotLightStruct.color,
2, 0.3, 0, 0, 0,
true
};
AddBeacon(&spotLightStruct.beaconSpec);
Last edited: