Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help New Editor looking for help.
Chaosturn Offline
Junior Member

Posts: 3
Threads: 1
Joined: Oct 2011
Reputation: 0
#4
RE: New Editor looking for help.

(10-21-2011, 11:43 PM)Khyrpa Wrote: 1. Adding string &in asParent, string &in asChild, int alState after your collide callback functions (I'm bad with these terms) should do the trick. Like this:

void CollideForestArea(string &in asParent, string &in asChild, int alState)

I can't explain it well, but when calling the thing that happens after the collide. When using CollideCallback, you need that stuff (Callback syntax?) behind your function (the void thing)

2. Same thing:
void CollideForest(string &in asParent, string &in asChild, int alState)


edit. btw your code seems to be pretty mess, is it just because of copying or aren't you using similar program to notepad++ for editing text?
It's all in order in my notepad++ document! something must have gone wrong copy pasting... Smile Thanks so much for the response!
(10-21-2011, 11:49 PM)nemesis567 Wrote: About the second part, you're missing something:

PHP Code: (Select All)
void CollideForest(string &in asParentstring &in asChildint alState)//You were missing this function's parameters.
{
PlaySoundAtEntity("ForestScare00""scare_ghost.snt",  "ScriptArea_1"10false);//I suppose this is ScriptArea and not ScripArea
PlaySoundAtEntity("ForestScare01",  "react_scare.snt""ScriptArea_1"10false);


And please use [php] code brackets when writting code in the forums. As Web Devs didn't create syntax highlighting for AngelScript, you can use php which is similar.
I'm sorry about the messy code Smile It's in order on my pc. Thanks for response! I did spell wrong on "ScriptArea_1", thanks for letting me know Smile



Also, How do I increase the volume of scripted sounds?
(This post was last modified: 10-22-2011, 12:20 AM by Chaosturn.)
10-22-2011, 12:10 AM
Find


Messages In This Thread
New Editor looking for help. - by Chaosturn - 10-21-2011, 11:17 PM
RE: New Editor looking for help. - by Khyrpa - 10-21-2011, 11:43 PM
RE: New Editor looking for help. - by Chaosturn - 10-22-2011, 12:10 AM
RE: New Editor looking for help. - by nemesis567 - 10-21-2011, 11:49 PM
RE: New Editor looking for help. - by Khyrpa - 10-22-2011, 01:45 AM
RE: New Editor looking for help. - by Chaosturn - 10-22-2011, 11:52 AM



Users browsing this thread: 1 Guest(s)