Local sounds attach to trigger?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Desert Eagle
Captain
Posts: 237
Joined: Mon Jan 13, 2003 1:05 am
Location: Mapping Bunker
Contact:

Local sounds attach to trigger?

Post by Desert Eagle »

I have my custom sounds working in my map. Nice tut on sounds JV.

My question, If I want to play a sound locally can it be set to a trigger somehow?

This is how I have beening doing..but long way( or wrong way) to do it:

In my scr file: (This is a MP Map)

local.crane = spawn script_model
local.crane.origin = ( -3317 -2840 800 )
local.crane.angles = ( 0 0 0 )
local.crane model "models/mysound/mysound.tik"
local.crane playsound mysound

This is a pain running around map and getting coords. It works but perhaps a trigger would be better? Attach sound to trigger?

Any help or suggestions would be appericated.
Desert-Eagle
....The Eagle Has Landed...
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Why not just add the model to your map in Radiant?
Image
Desert Eagle
Captain
Posts: 237
Joined: Mon Jan 13, 2003 1:05 am
Location: Mapping Bunker
Contact:

Post by Desert Eagle »

LOL..thanks JV...head in wrong place...for some reason never thought of that.
Desert-Eagle
....The Eagle Has Landed...
Post Reply