Squirrel/Scripting Requests

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Server-side requests)
Line 12: Line 12:
 
** Added events [[Squirrel/Server/Events/Player/onPlayerUpdate|onPlayerUpdate]] and [[Squirrel/Server/Events/Vehicle/onVehicleUpdate|onVehicleUpdate]] instead, these will be called every time an on foot, in car or unoccupied vehicle sync packet is received. (Update 0.1.0.9 onwards) [[User:Juppi|Juppi]] 17:11, 17 March 2011 (UTC)
 
** Added events [[Squirrel/Server/Events/Player/onPlayerUpdate|onPlayerUpdate]] and [[Squirrel/Server/Events/Vehicle/onVehicleUpdate|onVehicleUpdate]] instead, these will be called every time an on foot, in car or unoccupied vehicle sync packet is received. (Update 0.1.0.9 onwards) [[User:Juppi|Juppi]] 17:11, 17 March 2011 (UTC)
  
* A signal that will trigger when any server side script uses the Message function. Would be very useful for unpack-and-go echo scripts or any kind like that. (Something like onMessage( szMessage ) )
+
* <s>A signal that will trigger when any server side script uses the Message function. Would be very useful for unpack-and-go echo scripts or any kind like that. (Something like onMessage( szMessage ) )</s>
 
** This event could cause a potential infinite loop. It is more recommended to use a custom wrapper function which calls Message and your event handler for Message (Message can only be called from within squirrel scripts anyway). Having an event for Message could also justify having events for other message functions such as MessagePlayer or game texts. -- [[User:Juppi|Juppi]] 22:13, 9 June 2011 (UTC)
 
** This event could cause a potential infinite loop. It is more recommended to use a custom wrapper function which calls Message and your event handler for Message (Message can only be called from within squirrel scripts anyway). Having an event for Message could also justify having events for other message functions such as MessagePlayer or game texts. -- [[User:Juppi|Juppi]] 22:13, 9 June 2011 (UTC)
  
Line 19: Line 19:
 
== Client-side requests ==
 
== Client-side requests ==
  
* '''*.Velocity''' to be able to set the velocity using clientside scripts [[User:jack9267|jack9267]]
+
* <s>'''*.Velocity''' to be able to set the velocity using clientside scripts</s> [[User:jack9267|jack9267]]
 +
** Added in update 0.1.0.11 -- [[User:Juppi|Juppi]] 22:30, 12 September 2011 (UTC)
  
 
* <s>'''Player.Spawn''' to be able to forcibly spawn the player using clientside scripts</s>
 
* <s>'''Player.Spawn''' to be able to forcibly spawn the player using clientside scripts</s>

Revision as of 23:30, 12 September 2011

Use this page to request functions, events or other features for LU/VU scripting.

Server-side requests

  • Player.ColouredName to be able to retrieve the names with the [#XXXXXX][#d] colours.
  • A Signal that will trigger when your vehicle or player move (onPlayerMove & onVehicleMove) with old xyz and new xyz
    • Added events onPlayerUpdate and onVehicleUpdate instead, these will be called every time an on foot, in car or unoccupied vehicle sync packet is received. (Update 0.1.0.9 onwards) Juppi 17:11, 17 March 2011 (UTC)
  • A signal that will trigger when any server side script uses the Message function. Would be very useful for unpack-and-go echo scripts or any kind like that. (Something like onMessage( szMessage ) )
    • This event could cause a potential infinite loop. It is more recommended to use a custom wrapper function which calls Message and your event handler for Message (Message can only be called from within squirrel scripts anyway). Having an event for Message could also justify having events for other message functions such as MessagePlayer or game texts. -- Juppi 22:13, 9 June 2011 (UTC)
  • A function to create a 3D text in-game. Could be really usefull to create our own player tags. (Maybe could be added on the clientside too no?)

Client-side requests

  • *.Velocity to be able to set the velocity using clientside scripts jack9267
    • Added in update 0.1.0.11 -- Juppi 22:30, 12 September 2011 (UTC)
  • Player.Spawn to be able to forcibly spawn the player using clientside scripts
  • Player.MouseFrozen to be able to Freeze the mouse (Useful for GUIs and Buttons, Since it moves your view now too)
Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox