User contributions for Habi
Jump to navigation
Jump to search
14 December 2023
- 14:4514:45, 14 December 2023 diff hist +399 N GetObjectModel Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.7 beta and will not work in previous versions. </poem> {{Welcome|desc=Gets the model of a pickup| params=<source>(objectid)</source> pickupid : The ID of the object to retrieve the model for.| retvals=The model ID of the object.| relfuncs= *IsObjectStreamedIn *GetObjectModel }}"
14 November 2023
- 09:1509:15, 14 November 2023 diff hist +25 Main Page No edit summary
- 09:1209:12, 14 November 2023 diff hist +2 OnObjectUpdate No edit summary current
- 09:1109:11, 14 November 2023 diff hist +135 OnObjectUpdate No edit summary
- 09:0609:06, 14 November 2023 diff hist +407 N OnObjectUpdate Created page with "{{Welcome|desc=Called when one of object's position, rotation, alpha is updated or it is moved.| params=<source>( objectId, updatetype)</source> <poem>::objectId : The ID of the object ::updatetype : See below <source>( AlphaUpdate=0, PositionUpdate=1, RotationToUpdate=2, MoveToUpdate=3, TrackingBumpsShots=4)</source> </poem>| relfuncs=*OnObjectDestroyed *OnObjectUpdate *IsObjectStreamedIn }}"
- 08:5808:58, 14 November 2023 diff hist +1 OnObjectDestroyed No edit summary current
- 08:5708:57, 14 November 2023 diff hist +371 N OnObjectDestroyed Created page with "{{Welcome|desc=Called when an object is destroyed/streamed out. | params=<source>( objectId )</source> <poem>::objectId : The ID of the object </poem>| example=<source lang="lua"> function OnObjectDestroyed(objectId) { SendChat("Where did object" + objectId + "go"); } </source>| relfuncs=*OnObjectStreamIn *OnObjectUpdate *IsObjectStreamedIn *SendChat }}"
- 08:5308:53, 14 November 2023 diff hist +35 OnObjectStreamIn No edit summary current
- 08:5208:52, 14 November 2023 diff hist +160 OnObjectStreamIn No edit summary
- 08:4808:48, 14 November 2023 diff hist +227 N OnObjectStreamIn Created page with "{{Welcome|desc=Called when an object is streamed in for npc. | params=<source>( objectId )</source> <poem>::objectId : The ID of the object </poem>| relfuncs=*OnObjectDestroyed *OnObjectUpdate *IsObjectStreamedIn }}"
12 November 2023
- 15:3915:39, 12 November 2023 diff hist +107 GetCheckpointColor No edit summary current
- 15:3715:37, 12 November 2023 diff hist +566 N GetCheckpointColor Created page with "{{Welcome|desc=Gets the colour(r,g,b,a) of a checkpoint as a table. | params=<source>( checkpointId )</source> <poem>checkpointId : The ID of the checkpoint whose colour is to be obtained. </poem>| example=<source lang="lua"> if(IsCheckpointStreamedIn(checkpointId)) { local color=GetCheckpointColor(checkpointId); print("r: "+color.r+", g: "+color.g+ ", "b: "+color.b+", a: "+color.a+"\n"); } </source>| relfuncs=*GetCheckpointPos *GetCheckpointRadius *IsCheckpoin..."
- 15:3115:31, 12 November 2023 diff hist +498 N OnCheckpointUpdate Created page with "{{Welcome|desc=Called when a checkpoint is updated by server. | params=<source>( checkpointId, updatetype )</source> <poem>checkpointId : The ID of the checkpoint which was updated. updatetype : 0 for radius, 1 for position and 2 for colour update. </poem>| example=<source lang="lua"> function OnCheckpointUpdate(checkpointId, updatetype) { } </source>| relfuncs=*OnCheckpointDestroyed *OnCheckpointStreamIn *IsCheckpointStreamedIn *ClaimEnterCheckpoint *C..." current
- 15:2515:25, 12 November 2023 diff hist +3 OnCheckpointDestroyed No edit summary current
- 15:2515:25, 12 November 2023 diff hist +1 OnCheckpointDestroyed No edit summary
- 15:2415:24, 12 November 2023 diff hist +543 N OnCheckpointDestroyed Created page with "{{Welcome|desc=Called when a checkpoint is destroyed/StreamOut. Server sends this also when npc is far away(stream out) from checkpoint. params=<source>( checkpointId )</source> <poem>checkpointId : The ID of the checkpoint destroyed/streamedout. </poem>| example=<source lang="lua"> function OnCheckpointDestroyed(checkpointId) { print("The checkpoint "+ checkpointId+ " is destroyed! ); } </source>| relfuncs=*OnCheckpointStreamIn *OnCheckpointUpdate *IsCheckpoi..."
- 15:1215:12, 12 November 2023 diff hist +454 N OnCheckpointStreamIn Created page with "{{Welcome|desc=Called when a checkpoint is streamed in for npc. | params=<source>( checkpointId )</source> <poem>checkpointId : The ID of the streamed in checkpoint. </poem>| example=<source lang="lua"> function OnCheckpointStreamIn(checkpointId) { print("I see checkpoint with ID: "+ checkpointId); } </source>| relfuncs=*OnCheckpointDestroyed *OnCheckpointUpdate *IsCheckpointStreamedIn *ClaimEnterCheckpoint *ClaimExitCheckpoint }}" current
- 09:5209:52, 12 November 2023 diff hist +130 GetCheckpointPos No edit summary current
- 09:4909:49, 12 November 2023 diff hist +144 GetCheckpointRadius No edit summary current
- 09:4709:47, 12 November 2023 diff hist +416 N GetCheckpointRadius Created page with "{{Welcome|desc= Returns the radius of a checkpoint.| params=<source>( checkpointId )</source> <poem>checkpointId : The ID of the checkpoint whose radius is to be obtained. </poem>| retvals=The radius of checkpoint as float. Throws error if checkpoint with the specified ID is not found.| example=<source lang relfuncs=*GetCheckpointColor *GetCheckpointPos *GetCheckpointCount *ClaimEnterCheckpoint }}"
- 09:4409:44, 12 November 2023 diff hist +4 GetCheckpointPos No edit summary
- 09:4409:44, 12 November 2023 diff hist +403 N GetCheckpointPos Created page with "{{Welcome|desc= Returns the position of the checkpoint.| params=<source>( checkpointId )</source> <poem>objectId : The ID of the checkpoint whose position is to be obtained. </poem>| retvals=The position of checkpoint as Vector. Throws error if checkpoint with the specified ID is not found.| relfuncs=*GetCheckpointColor *GetCheckpointRadius *GetCheckpointCount *ClaimEnterCheckpoint }}"
- 09:3309:33, 12 November 2023 diff hist −112 Main Page No edit summary
- 09:2809:28, 12 November 2023 diff hist −3 IsObjectTouchReportEnabled No edit summary current
- 09:2709:27, 12 November 2023 diff hist +526 N IsObjectTouchReportEnabled Created page with "{{Welcome|desc=Tells whether Touch Report is enabled for a particular object.| params=<source>( objectId )</source> <poem>objectId : The ID of the object whose property is to be checked. </poem>| example=<source lang="lua"> if( IsObjectStreamedIn( objectId ) && IsObjectTouchReportEnabled( objectId )) { ClaimObjectTouch( objectId ); } </source>| retvals= true if property is enabled, false otherwise. Throws error on invalid object ID.| relfuncs=*ClaimObjectTouch *IsO..."
- 09:2409:24, 12 November 2023 diff hist −1 IsObjectShotReportEnabled No edit summary current
- 09:2309:23, 12 November 2023 diff hist +149 IsObjectShotReportEnabled No edit summary
- 09:2009:20, 12 November 2023 diff hist +395 N IsObjectShotReportEnabled Created page with "{{Welcome|desc=Tells whether Shot Report is enabled for a particular object.| params=<source>( objectId )</source> <poem>objectId : The ID of the object whose property is to be checked. </poem>| example=<source lang="lua"> if( IsObjectShotReportEnabled( objectId ) ) { ClaimObjectShot( objectId, 17 ); //17 is weapon. } </source>| relfuncs=*ClaimObjectShot *IsObjectTouchReportEnabled }}"
- 09:1009:10, 12 November 2023 diff hist +280 N OnPickupDestroyed Created page with "{{Welcome|desc=Called when a pickup destroyed. This happens also when the pickup is streamed out.| params=<source>( pickupId)</source> <poem>pickupId : The ID of the pickup which was destroyed. </poem>| relfuncs=*OnPickupStreamIn *OnPickupUpdate *IsPickupStreamedIn }}" current
11 November 2023
- 07:5607:56, 11 November 2023 diff hist +22 IsObjectStreamedIn No edit summary current
- 07:5507:55, 11 November 2023 diff hist −3 Main Page No edit summary
- 07:5407:54, 11 November 2023 diff hist +68 Main Page No edit summary
- 07:4907:49, 11 November 2023 diff hist +348 N IsObjectStreamedIn Created page with "{{Welcome| desc=Checks whether an object is streamed in for npc. params=<syntaxhighlight lang="lua">( objectId)</syntaxhighlight> <poem>::objectid : The ID of the object </poem>| retvals=true if the object is streamed in, false otherwise(invalid id/not streamed in)| relfuncs=*IsCheckpointStreamedIn *IsPickupStreamedIn *GetObjectPos }}"
9 November 2023
- 06:2506:25, 9 November 2023 diff hist +4 IsCheckpointSphere No edit summary current
- 06:2406:24, 9 November 2023 diff hist +36 N IsCheckpointStreamIn Habi moved page IsCheckpointStreamIn to IsCheckpointStreamedIn current Tag: New redirect
- 06:2406:24, 9 November 2023 diff hist 0 m IsCheckpointStreamedIn Habi moved page IsCheckpointStreamIn to IsCheckpointStreamedIn current
- 06:2206:22, 9 November 2023 diff hist +4 IsCheckpointStreamedIn No edit summary
- 06:2106:21, 9 November 2023 diff hist +3 IsCheckpointStreamedIn No edit summary
- 06:2106:21, 9 November 2023 diff hist +371 N IsCheckpointStreamedIn Created page with "{{Welcome| desc=Checks whether a checkpoint id is streamed in. If it is streamed in, then the checkpoint id is valid.| params=<syntaxhighlight lang="lua">( checkpointId )</syntaxhighlight> <poem>::checkpointId : The ID of the checkpoint. </poem>| retvals=true if the checkpoint is streamed in, false otherwise(invalid id/not streamed in)| relfuncs=*GetVehicleSpeed }}"
- 06:1706:17, 9 November 2023 diff hist +26 IsCheckpointSphere No edit summary
- 06:1606:16, 9 November 2023 diff hist +1 IsCheckpointSphere No edit summary
- 06:1506:15, 9 November 2023 diff hist +8 IsCheckpointSphere No edit summary
- 06:1506:15, 9 November 2023 diff hist +554 N IsCheckpointSphere Created page with "{{Welcome| desc=Checks whether a checkpoint is sphere or not.| params=<syntaxhighlight lang="lua">( checkpointId )</syntaxhighlight> <poem>::checkpointId : The ID of the target checkpoint whose shape is to be determined. </poem>| retvals=true if the checkpoint is sphere, false otherwise. This function throws error if invalid checkpointId is given.| example=<source lang="lua"> if(IsCheckpointStreamIn(checkpointId)) { local isSphere=IsCheckpointSphere(checkpointId); }| rel..."
- 06:0506:05, 9 November 2023 diff hist +354 N GetPlayerAction Created page with "{{Welcome| desc=This will return the action of the a player.| params=<syntaxhighlight lang="lua">( playerId)</syntaxhighlight> <poem>::playerId: The ID of the player whose action is to be obtained. </poem>| retvals=The action of player as integer. If the target player does not exist, it will return 0.| relfuncs=*GetPlayerState *GetPlayerKeys }}" current
8 November 2023
- 13:1713:17, 8 November 2023 diff hist +12 GetPlayerSpeed No edit summary current
- 13:1713:17, 8 November 2023 diff hist +357 N GetPlayerSpeed Created page with "{{Welcome| desc=This will return the speed of the specified player, if that player is onfoot.| params=<syntaxhighlight lang="lua">( playerId)</syntaxhighlight> <poem>::playerId: The ID of the player whose speed is to be obtained. </poem>| retvals=The speed of player as Vector or zero vector on error(player not connected).| relfuncs=*GetVehicleSpeed }}"
- 12:1312:13, 8 November 2023 diff hist +289 N OnTimeWeatherSync Created page with "{{Welcome|desc=This function is called when time and weather details are send by server.| params=<source>( timerate, minute, hour, weather )</source> <poem>timerate : The timerate. minute : The minute. hour : The hour. weather : Current weather. </poem>| relfuncs=*OnServerShareTick }}" current
- 11:0811:08, 8 November 2023 diff hist −2 OnPickupUpdate No edit summary current
- 11:0711:07, 8 November 2023 diff hist +345 N OnPickupUpdate Created page with "{{Welcome|desc=Called when a streamed in pickup is updated. | params=<source>( pickupId, updateType )</source> <poem>pickupId : The ID of the pickup. updateType : 0 for change in pickup's alpha component, 1 for change in position and 2 for refresh/respwan. </poem>| relfuncs=*OnPickupStreamedIn *OnCheckpointUpdate *OnObjectUpdate }}"
- 10:5610:56, 8 November 2023 diff hist +260 N OnPickupStreamIn Created page with "{{Welcome|desc=Called when a pickup is streamed in for npc. | params=<source>( pickupId)</source> <poem>pickupId : The ID of the streamed in pickup. </poem>| relfuncs=*OnPickupDestroyed *OnPickupUpdate *OnObjectStreamIn *OnCheckpointStreamIn }}" current