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
Scripting help !!! :E
Sundayz Offline
Junior Member

Posts: 6
Threads: 2
Joined: Feb 2012
Reputation: 0
#9
RE: Scripting help !!! :E

Okay thanks a lot !


(02-21-2012, 03:22 AM)flamez3 Wrote: For the sound:

PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);


asSoundName - internal name
asSoundFile - the sound to use + extension .snt
asEntity - the entity to create the sound at, can be “Player”
afFadeTime - time in seconds the sound needs to fade
abSaveSound - determines whether a sound should “remember” its state. If true, the sound is never attached to the entity! Also note that saving should on be used on looping sounds!
Rofl what u told me to do don't work i'll give you what i wrote and tell me what is wrong (i really start to script)

void OnStart()
{
AddDebugMessage("OnStart!", false);
SetEntityPlayerInteractCallback("letter3", "Scare", true);
}


void Scare(string &in asEntity)
{
TeleportPlayer("PlayerStartArea_20");
}



My letter is really letter3 and the area i wan't my player to go is this one too these things are not wrong i'm sure.

(This post was last modified: 02-21-2012, 12:05 PM by Sundayz.)
02-21-2012, 11:47 AM
Find


Messages In This Thread
Scripting help !!! :E - by Sundayz - 02-20-2012, 12:41 PM
RE: Scripting help !!! :E - by flamez3 - 02-20-2012, 12:52 PM
RE: Scripting help !!! :E - by Sundayz - 02-20-2012, 12:56 PM
RE: Scripting help !!! :E - by flamez3 - 02-20-2012, 01:12 PM
RE: Scripting help !!! :E - by Sundayz - 02-20-2012, 01:40 PM
RE: Scripting help !!! :E - by flamez3 - 02-20-2012, 02:11 PM
RE: Scripting help !!! :E - by Sundayz - 02-20-2012, 06:09 PM
RE: Scripting help !!! :E - by flamez3 - 02-21-2012, 03:22 AM
RE: Scripting help !!! :E - by Sundayz - 02-21-2012, 11:47 AM



Users browsing this thread: 1 Guest(s)