Garry's Mod

Garry's Mod

[E2] PlyCore
 This topic has been pinned, so it's probably important
Sir Papate  [developer] 12 Jan, 2014 @ 5:15pm
Documentation
Console Commands
"sbox_E2_PlyCore"
  • "1" Everyone can use the functions on Everyone.
  • "2" People can use the functions only on their friends.
  • "3" Only admins can use functions.
  • "4" The functions of players setting are disabled.

Lua
Hook PlyCoreCommand(ply, target, command)

Called when a player use a command of PlyCore.

Arguments
  • Player: ply
  • Player: target
  • string: command

Return
  • boolean - Return true to block the command.


Functions
The following functions are protected by Protection Prop. To use them on another player, you must have their rights. Look the command "sbox_E2_PlyCore".

Function Return Description runOnSpawn(N) If N == 0, the chip will no longer run on spawn events, otherwise it makes this chip execute when someone respawn Only needs to be called once, not in every execution. spawnClk() N Returns 1 if the chip is being executed because of a spawn event. Returns 0 otherwise. lastSpawnedPlayer() E Return the last player to respawn.
Function Return Description runOnDeath(N) The same thing, but with death event. deathClk() N Returns 1 if the chip is being executed because of a death event. Returns 0 otherwise. lastDeath() E Return the player who died. lastDeathInflictor() E Return the item used to kill the person. lastDeathAttacker() E Return the player or entity that killed the victim.
Function Description E:plyApplyForce(V) Sets the velocity of the player. E:plySetPos(V) Sets the position of the player. E:plySetAng(A) Sets the angle of the player. E:plyNoclip(N) Sets the player's noclip. E:plySetHealth(N) Sets the health of the player. E:plySetArmor(N) The amount that the player armor is going to be set to. E:plySetMass(N) Sets the mass of the player. - default 85 E:plySetJumpPower(N) Sets the jump power, eg. the velocity the player will applied to when he jumps. - default 200 E:plySetGravity(N) Sets the gravity multiplier of the player. default 600 E:plySetSpeed(N) Sets the speed of the player. - default 200 E:plyResetSettings() Reset all values of the player. E:plyEnterVehicle(E) Enters the player into specified vehicle. E:plyExitVehicle() Makes the player exit the vehicle if they're in one. E:plySpawn() Brings back the player. E:plyGod(N) It's to become invincible.
Function Return Description E:plyGetMass() N Returns the mass of the player. E:plyGetJumpPower() N Returns the jump power of the player. E:plyGetGravity() N Gets the gravity multiplier of the player. E:plyGetSpeed() N Gets the speed of the player.

For the DamageCore WorkShop, click here.
For the WeaponCore WorkShop, click here.
Last edited by Sir Papate; 2 Aug, 2016 @ 1:04pm
< >
Showing 1-2 of 2 comments
ViiSins 26 Nov, 2016 @ 10:09pm 
the command to change who can use it doesn't work? Just tells me"unknown command"
aStonedMonkey 12 Sep, 2017 @ 6:34pm 
Yeah! Command still nto working...
< >
Showing 1-2 of 2 comments
Per page: 1530 50