Frictional Games Forum (read-only)
[SCRIPT] [SOLVED] How??? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] [SOLVED] How??? (/thread-27395.html)



[SOLVED] How??? - Straxedix - 11-21-2014

Okay i saw in 1 fcm or CS when you click on level door first something happen then you teleport how to do that?


RE: How??? - Slanderous - 11-22-2014

...

Some more details man.


RE: How??? - Red - 11-22-2014

With timers, I think. Elaborate more, pls.


RE: How??? - Mudbill - 11-22-2014

Just add an interaction area over the door and replace the crosshair with a level door one. That way the player will think they're clicking the door, but you can script whatever you want instead.


RE: How??? - Straxedix - 11-22-2014

(11-22-2014, 01:28 AM)Mudbill Wrote: Just add an interaction area over the door and replace the crosshair with a level door one. That way the player will think they're clicking the door, but you can script whatever you want instead.

Sounds interesting but is there script that will CHANGE MAP, i know script that teleports to another start area but this is something else.

BTW if you need more explanation i will explain...

You all know level doors right ? When you click on them you immediately change map. But in this case i am trying to (what i saw is possible) click on door (or maybe area that looks like door) then something happens example:

Player clicks on door or area, then he turn around. Then change map, this is just example.

That's what i am trying to do, but as i noticed there is no script that can change map only teleport you to another position ? Maybe checkpoint...

EDIT:
Spoiler below!
PHP Code:
void ChangeMap(stringasMapNamestringasStartPosstringasStartSoundstringasEndSound);

 
Immediatly loads another map.

asMapName the file to load
asStartPos 
the name of the StartPos on the next map
asStartSound 
the sound that is played when the change starts
asEndSound 
the sound that is played when the new map is loaded 


This is proof that i am retarded -.- But how i change crosshair ?


RE: How??? - Straxedix - 11-22-2014

Oh lol there it is:
Spoiler below!
PHP Code:
void SetEntityCustomFocusCrossHair(stringasNamestringasCrossHair);

Changes the crosshair that is used when focusing an entity.

asName internal name
asCrossHair 
desired crosshaircan be: Default (uses default), GrabPushIgnitePickLevelDoorLadder 

Dude i am retarded :/


RE: How??? - Straxedix - 11-22-2014

Solved +rep to ALL