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


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help [SOLVED] How???
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#1
[SOLVED] How???

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

(This post was last modified: 11-22-2014, 11:09 AM by Straxedix.)
11-21-2014, 10:05 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#2
RE: How???

...

Some more details man.
11-22-2014, 12:00 AM
Find
Red Offline
Posting Freak

Posts: 1,757
Threads: 49
Joined: Feb 2012
Reputation: 54
#3
RE: How???

With timers, I think. Elaborate more, pls.
11-22-2014, 12:09 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: How???

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.

(This post was last modified: 11-22-2014, 01:28 AM by Mudbill.)
11-22-2014, 01:28 AM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#5
RE: How???

(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: (Select All)
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 ?

(This post was last modified: 11-22-2014, 08:08 AM by Straxedix.)
11-22-2014, 07:44 AM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#6
RE: How???

Oh lol there it is:
Spoiler below!
PHP Code: (Select All)
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 :/

11-22-2014, 09:26 AM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#7
RE: How???

Solved +rep to ALL

11-22-2014, 11:09 AM
Find




Users browsing this thread: 3 Guest(s)