Frictional Games Forum (read-only)

Full Version: Video Tutorials [OMG ELEVEN!!!!]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9
Simpanra, could you make a tutorial on how to use Custom models on your custom story? It would help me Big Grin
Hey can you make a video about how to make a lever open a secret door!! (if you haven't already) i have looked for it and i cant seem to find anything about how i am ment to do this!!!
May I request a tutorial on how to make .jpg pictures into planes in the level editor??? Smile

(04-25-2011, 04:33 PM)Dalroc Wrote: [ -> ]You should indent your code.. Especially if you are going to teach others to script.

I guess I could explain for you what the "string& asName", "float afTime", "string& asFunction" and all those mean.

Lets use your own tutorial as example.
In your AddEntityCollideCallback you have the parameters "Player", "RoomTwoArea" and "1".
In you CollideRoomTwo function you "import" these parameters with a new name you specify.

So
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
calls
CollideRoomTwo(string &in asParent, string &in asChild, int &in alState)
This means Player is now a variable named asParent inside of the CollideRoomTwo function, RoomTwoArea is named asChild and the 1 in stored inside an integer variable called alState.

Now this doesn't really change anything for this specific script, but it's good for doing a general function that you use several times for several different entities and locations (unlocking doors, ambient noises, levers).

Example, this code would unlock any door that calls it:
PHP Code:
void KeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked(asEntityfalsetrue);
    
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);


I kinda guessed that, but didn't know for sure till I read what you said. I'm definitely going to try and use this kind of generalized function in my code. very helpful, thanks Smile
Hi there, I've been looking around and haven't found any particularly helpful guides on playing sounds and music in the game via the level editor and .hps files, if anyone has a link to one that'd be great. Also, I've found your videos really useful Simpanra, I spoke to you before on youtube under the name 'sideburncorporation'. Anyhow, thanks all Smile
I'm creating some tutorials too and I don't know if Simpanra is still active on making tutorials :O.

I could contribute with some tutorials Smile.

Youtube name: Xtronism

I currently only got 1 but there will be more.
Pages: 1 2 3 4 5 6 7 8 9