scripts in maps

[GR]doodleninja
1000+ Posts
1000+ Posts
Posts: 1086
Joined: Mon Feb 27, 2012 11:08 am

scripts in maps

Post by [GR]doodleninja » Sat Aug 04, 2012 8:35 am

how do i import/export scripts in/from maps?

User avatar
ant_8490
Site Admin
Posts: 4385
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: scripts in maps

Post by ant_8490 » Sat Aug 04, 2012 9:02 am

Really? Wtf are you talking about?
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10

[GR]doodleninja
1000+ Posts
1000+ Posts
Posts: 1086
Joined: Mon Feb 27, 2012 11:08 am

Re: scripts in maps

Post by [GR]doodleninja » Sat Aug 04, 2012 9:18 am

i want to exec a script when people go to an particular point in the map. the script is written but how to i import it in the map?

User avatar
ant_8490
Site Admin
Posts: 4385
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: scripts in maps

Post by ant_8490 » Sat Aug 04, 2012 9:38 am

[GR]doodleninja wrote:i want to exec a script when people go to an particular point in the map. the script is written but how to i import it in the map?
You dont exec scripts in a map. You would have to add all those entities into the map and have triggers run them they like they would in the script.
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10

[GR]doodleninja
1000+ Posts
1000+ Posts
Posts: 1086
Joined: Mon Feb 27, 2012 11:08 am

Re: scripts in maps

Post by [GR]doodleninja » Sat Aug 04, 2012 10:16 am

ok. btw, you told me once, when i asked you on your yt video how do you can destroy a building with an explosion, you said it needs more power than mine has. How much power do you need, and what do you need for this. ( like on the buddhakiller, that only propane tank can kill buddha)

Nicdel
Server Admin
Posts: 2417
Joined: Sun Apr 11, 2010 4:50 am

Re: scripts in maps

Post by Nicdel » Sat Aug 04, 2012 10:21 am

[GR]doodleninja wrote:ok. btw, you told me once, when i asked you on your yt video how do you can destroy a building with an explosion, you said it needs more power than mine has. How much power do you need, and what do you need for this. ( like on the buddhakiller, that only propane tank can kill buddha)
phys_convert, a trigger. Oh, and you should know how to script, that might be the problem.
Ingame: -[SaD]- Nico

Image

[GR]doodleninja
1000+ Posts
1000+ Posts
Posts: 1086
Joined: Mon Feb 27, 2012 11:08 am

Re: scripts in maps

Post by [GR]doodleninja » Sat Aug 04, 2012 10:42 am

teach me

Peter Brev

Re: scripts in maps

Post by Peter Brev » Sat Aug 04, 2012 11:17 am

[GR]doodleninja wrote:teach me
As I said you in steam, don't try to run scripts in your map.

User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: scripts in maps

Post by shadowslayer » Sun Aug 05, 2012 3:13 pm

If you mean run cfg scripts, you can use point_clientcommand to execute the script and include the cfg with your map if you upload it anywhere. Can't remember if it allows the exec command or not.
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me

Peter Brev

Re: scripts in maps

Post by Peter Brev » Sun Aug 05, 2012 4:57 pm

shadowslayer wrote:If you mean run cfg scripts, you can use point_clientcommand to execute the script and include the cfg with your map if you upload it anywhere. Can't remember if it allows the exec command or not.
Useless. Using point_servercommand to exec cfg script will just make a big mess. No, just use this entity for gravity traps.
And you don't use point_servercommand to run a script. You use a trigger and a logic_relay. I have already done that before.