Sound when casting a spell?

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the when posting support requests.

User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Sound when casting a spell?

Postby kddekadenz » March 31st, 2012, 11:25 am

I'm quite confused:
I want to add a custom sound when casting a spell, but I don't know how to do this.
Please answer as fast as possible.
is an advanced RPG beeing developed in Sandbox

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Sound when casting a spell?

Postby Hirato » March 31st, 2012, 8:21 pm

This is not a url, clicking it is pointless

User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: Sound when casting a spell?

Postby kddekadenz » April 7th, 2012, 1:56 pm

is an advanced RPG beeing developed in Sandbox

User avatar
Sircameron
Member
Member
Posts: 62
Joined: March 6th, 2012, 9:13 pm
Name: Cameron
Location: Indiana

Re: Sound when casting a spell?

Postby Sircameron » April 7th, 2012, 4:50 pm


Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Sound when casting a spell?

Postby Hirato » April 7th, 2012, 8:24 pm

This is not a url, clicking it is pointless

User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: Sound when casting a spell?

Postby kddekadenz » April 8th, 2012, 11:55 am

is an advanced RPG beeing developed in Sandbox

User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: Sound when casting a spell?

Postby kddekadenz » April 13th, 2012, 11:11 am

Can I get the wielded item(s) of a actor? Or at least of the player?

Offtopic: PAS needs a better documentation - I think I will improve it when I have time
is an advanced RPG beeing developed in Sandbox

User avatar
Sircameron
Member
Member
Posts: 62
Joined: March 6th, 2012, 9:13 pm
Name: Cameron
Location: Indiana

Re: Sound when casting a spell?

Postby Sircameron » April 13th, 2012, 12:45 pm

Found getequip() in the rpgscript.ccp so it should be possible. I'll play around with it tonight after work. I dont know if it references a certain slot or what at this point.. Hope that helps
***Edit***
sorry i'm stumped 2.5 hrs and ive got nothing.. Not even an idea on how you could do this. Other than if you could get the weapons to set a specific variable when equipped, then ref that number for your sound in a list.. Goodluck

User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: Sound when casting a spell?

Postby kddekadenz » April 14th, 2012, 11:52 am

Thank you for trying :)

Good idea to browse the source code. I will try to find a solution.
is an advanced RPG beeing developed in Sandbox


Return to “Sandbox General Support”

Who is online

Users browsing this forum: No registered users and 2 guests