Env_Laser v1.0 
7 comments Env_Laser entity script by
MikuAuahDark
Description 
Just like the name, it creates a laser at specific angle
Because addtional entities request are not allowed then i create this LUA
Features 
Laserbeam effect
Can be triggered like another entities
No twice analyze
Uses
ms100 NOT always
Uses Trigger_Use
How to Install 
Extract Env_Laser.lua at specificed folder and edit server.lua to execute Env_Laser.lua when server started
Reserved Global Variables 
Env_Laser
Env_Laser_IsScanned
Env_Laser_scan
Env_Laser_Draw_Laser
Env_Laser_Toggle
Information 
Hooks: 3(
ms100,
triggerentity,
startround)
Lines: 81
How to Create Env_Laser 
1. Create Trigger_Use entity
2. On Trigger field enter this
Where status can be "on" or "off"(case-insensitive)
3. Env_Laser only work on specific button type. Env_Laser only work on button type Lighted_Color. So set it
4. The most important, the direction of the laser. Note that the direction is reversed(Choosing Bottom shows the laser at north). You can set this by Setting the Alignment option at entity setting
5. You can also give it name, so it can be turned on/off by map(Skip this if not needed)
6. Press OK, Save your map, and test it.
Rules 
You can use it for your server
You can edit it
You can upload at another website, say
MikuAuahDark made it
You can't say this is yours
You can't upload on another website without put me on credits
Notes 
1. Bugs? Feedbacks? on comments please, don't at PM
2. Many lasers can cause lags. Be careful.
3. Currently Env_Laser_desc.lua doesn't available this time. Maybe tomorrow
Version History 
v1.0
Initial Release
Another MikuAuahDark Scripts 
Timer Extra function(timerEx) v4.0 (12)
[UNUSED] Get Player Rank v1.4 (14)
Weapon Hudtxt v1.0 (7)
Improved Badwords v2.0 (5)



Just like the name, it creates a laser at specific angle
Because addtional entities request are not allowed then i create this LUA










Extract Env_Laser.lua at specificed folder and edit server.lua to execute Env_Laser.lua when server started









Hooks: 3(



Lines: 81


1. Create Trigger_Use entity
2. On Trigger field enter this
Code:
1
Env_Laser status
Where status can be "on" or "off"(case-insensitive)
3. Env_Laser only work on specific button type. Env_Laser only work on button type Lighted_Color. So set it
4. The most important, the direction of the laser. Note that the direction is reversed(Choosing Bottom shows the laser at north). You can set this by Setting the Alignment option at entity setting
5. You can also give it name, so it can be turned on/off by map(Skip this if not needed)
6. Press OK, Save your map, and test it.










1. Bugs? Feedbacks? on comments please, don't at PM
2. Many lasers can cause lags. Be careful.
3. Currently Env_Laser_desc.lua doesn't available this time. Maybe tomorrow




















edited 4×, last 03.11.13 01:10:54 am

Comments
7 comments



Log in!
You need to log in to be able to write comments!Log in



