forked from RafaelDeJongh/cap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expression 2 Functions
viral32111 edited this page Apr 2, 2020
·
1 revision
In this section you will find information about wiremod expression2 CAP functions.
Currently under construction.
- General functions
- Stargate functions
- Ring functions
- Atlantis transporter functions
- Asgard transporter functions
This functions should work almost with all cap devices, and will not work on other entities (by security reasons).
[number] stargateSystemType |
Arguments: none |
Returns 1 if used Group System, 0 if used Galaxy System. This is global function. |
[number] stargateIsInJamming |
Arguments: [vector] position, optional [entity] player |
Returns 1 if this vector is inside enabled Jamming Device. If passed player agrument, then it will also check for immunity on jamming device. |
[number] wirelink:stargateGetWire |
Arguments: [string] name |
Returns wire output with entered name from device. |
[string] wirelink:stargateGetWireString |
Arguments: [string] name |
Returns wire output with entered name from device like like string. |
[vector] wirelink:stargateGetWireVector |
Arguments: [string] name |
Returns wire output with entered name from device like like e2 vector. |
[entity] wirelink:stargateGetWireEntity |
Arguments: [string] name |
Returns wire output with entered name from device like like entity. |
[number] wirelink:stargateGetWireInput |
Arguments: [string] name |
Returns wire input with entered name from device. |
[string] wirelink:stargateGetWireStringInput |
Arguments: [string] name |
Returns wire input with entered name from device like like string. |
[vector] wirelink:stargateGetWireVectorInput |
Arguments: [string] name |
Returns wire input with entered name from device like like e2 vector. |
[entity] wirelink:stargateGetWireEntityInput |
Arguments: [string] name |
Returns wire input with entered name from device like like entity. |
[void] wirelink:stargateSetWire |
Arguments: [string] name, [number/string/vector/entity] value |
Set wire input with entered name and value. |
Stargate expression2 lib functions All this function can be used with wirelink or entity (only for owner).
[string] wirelink/entity:stargateAddress |
Arguments: none |
Returns stargate address. |
[void] wirelink/entity:stargateSetAddress |
Arguments: [string] address |
Set stargate address. |
[void] wirelink/entity:stargateRandomAddress |
Arguments: [number] mode |
Generate new random address and/or name. Modes: 0 - Generate new address and name. 1 - Generate only new address. 2 - Generate only new name. |
[string] wirelink/entity:stargateGroup |
Arguments: none |
Returns stargate group. |
[void] wirelink/entity:stargateSetGroup |
Arguments: [string] group |
Set stargate group. |
[string] wirelink/entity:stargateName |
Arguments: none |
Returns stargate name. |
[void] wirelink/entity:stargateSetName |
Arguments: [string] name |
Set stargate name. |
[number] wirelink/entity:stargatePrivate |
Arguments: none |
Returns stargate private status (1 or 0). |
[void] wirelink/entity:stargateSetPrivate |
Arguments: [number] private |
Set stargate private status. Use 1 or 0. |
[number] wirelink/entity:stargateLocal |
Arguments: none |
Returns stargate local status (1 or 0). |
[void] wirelink/entity:stargateSetLocal |
Arguments: [number] local |
Set stargate local status. Use 1 or 0. |
[number] wirelink/entity:stargateBlocked |
Arguments: none |
Returns stargate blocked status (1 or 0). |
[void] wirelink/entity:stargateSetBlocked |
Arguments: [number] blocked |
Set stargate blocked status. Use 1 or 0. |
To be continue... |
Rings expression2 lib functions All this function can be used with wirelink or entity (only for owner).
[string] wirelink/entity:stargateRingAddress |
Arguments: none |
Returns ring address. |
[void] wirelink/entity:stargateRingSetAddress |
Arguments: [string] address |
Set ring address. |
[void] wirelink/entity:stargateRingDial |
Arguments: [string] address |
Dial rings with entered address. |
[void] wirelink/entity:stargateRingDialClosest |
Arguments: [string] address |
Dial closest rings. |
Atlantis teleporter expression2 lib functions All this function can be used with wirelink or entity (only for owner).
[string] wirelink/entity:stargateAtlantisTPGetName |
Arguments: none |
Get atlantis transporter name. |
[void] wirelink/entity:stargateAtlantisTPSetName |
Arguments: [string] name |
Set atlantis transporter name. |
[number] wirelink/entity:stargateAtlantisTPGetPrivate |
Arguments: none |
Returns atlantis transporter private status (1 or 0). |
[void] wirelink/entity:stargateAtlantisTPSetPrivate |
Arguments: [number] private |
Set atlantis transporter private status. Should be 1 or 0. |
[void] wirelink/entity:stargateAtlantisTPTeleport |
Arguments: [string] name |
Teleport to atlantis transporter with entered name. If use empty value ("") then will be used closest transporter (if target transporter is not private). |
[array] wirelink/entity:stargateAtlantisTPAddressList |
Arguments: none |
Return array with all available addresses to dial from this transporter (not include private transporters). |
Asgard transporter expression2 lib functions All this function can be used with wirelink or entity (only for owner).
[string] wirelink/entity:stargateAsgardTeleport |
Arguments: [vector] origin, [vector] destination, [number] props |
Teleport players from origin to destination using asgard transporter. Props should be 1 if you want teleport also props near origin or 0 if only players. |