Poll: You like the tutorials
You do not have permission to vote in this poll.
Yes, I like them
33.33%
3 33.33%
No, they are useless and noob
11.11%
1 11.11%
OMA
44.44%
4 44.44%
Spiderman
11.11%
1 11.11%
Total 9 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial SetStance,SetRank,SetCursorHint,SetHintString,SetCardIcon and SetCardTitle
#1
Wink 
OMA gives a new tutorial

First of all, 2 commands that are meant to be used in triggers, like trigger_radius for example, they make a text like when you play and see: "Press SpaceBar to jump" and stuff like that.

Code:
trigger SetCursorHint("hint");
trigger SetHintString("string");

An example of use:

Code:
trigger SetCursorHint("HINT_NOICON");
trigger SetHintString("I LOVE OMA NOOBTUBING");

Now the command SetRank, works like setplayerdata but only for rank and prestige.

Code:
self SetRank(ranknumber,prestige);

Example

Code:
self SetRank(64,5);

Now Ill explain the command SetStance, this command makes you change your stance to stand,crouch or prone, works like this:

Code:
self SetStance("stance");

You can use this 3 stances:

Code:
prone
stand
crouch

This are 2 commands that allow you to change your cardicon or cardtitle

Code:
self SetCardIcon("cardicon");
self SetCardTitle("title");

Thats it, VOTE FOR OMA
Reply

#2
Why did you tell that you can't make me prestige 11 Sad
[Image: lQDUjba.jpg]
Reply

#3
(09-20-2011, 15:13)Yamato Wrote:
Code:
trigger SetCursorHint("hint");
trigger SetHintString("string");

I didn't know this worked in MP, ty.
Reply

#4
SetRank() is only temporarily for the current game, correct?

What about SetCardIcon and SetCardTitle? Are they permanent?
[Image: azuw.jpg]
Reply

#5
(09-15-2012, 20:27)zxz0O0 Wrote: SetRank() is only temporarily for the current game, correct?

What about SetCardIcon and SetCardTitle? Are they permanent?

SetRank is for all cods, i saw that in cod4, mw2, bo, mw3.
Mostly in _rank.gsc > OnPlayerConnected
Yes, they're permanent.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#6
Yeah, SetRank just sets the rank for the scoreboard. I checked the function in MW3, it's just writing to the player's struct (not sending anything to the player).
[Image: azuw.jpg]
Reply

#7
(09-15-2012, 20:39)zxz0O0 Wrote: Yeah, SetRank just sets the rank for the scoreboard. I checked the function in MW3, it's just writing to the player's struct (not sending anything to the player).

Its for the lvl on here. It is, as @lightspeed said, on _rank.gsc.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.