Scripting/Squirrel/Functions/CreatePickup: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This function will create a pickup. | |||
== Syntax == | == Syntax == | ||
<pre>CreatePickup( | '''1''' | ||
<pre>CreatePickup( model , pos )</pre> | |||
'''2''' | |||
<pre>CreatePickup( model, world, quantity, pos, alpha, isAuto )</pre> | |||
'''3''' | |||
<pre>CreatePickupExpanded( model, world, quantity, x, y, z, alpha, isAuto )</pre> | |||
== Arguments == | |||
'''1''' | |||
* ''int'' '''model''' - The model of pickup. | |||
* ''Vector'' '''pos''' - The pos of pickup. | |||
'''2''' | |||
* ''int'' '''model''' - The model of pickup. | |||
* ''int'' '''world''' - The world of pickup. | |||
* ''int'' '''quantity''' - The quantity of pickup. | |||
* ''Vector'' '''pos''' - The pos of pickup. | |||
* ''int'' '''alpha''' - The alpha of pickup. | |||
* ''bool'' '''isAuto''' - (Is auto respawn?) | |||
'''3''' | |||
* ''int'' '''model''' - The model of pickup. | |||
* ''int'' '''world''' - The world of pickup. | |||
* ''int'' '''quantity''' - The quantity of pickup. | |||
* ''float'' '''x''' - The x pos of pickup. | |||
* ''float'' '''y''' - The y pos of pickup. | |||
* ''float'' '''z''' - The z pos of pickup. | |||
* ''int'' '''alpha''' - The alpha of pickup. | |||
* ''bool'' '''isAuto''' - (Is auto respawn?) | |||
== Example == | |||
{{Scripting/Needs_Example}} | {{Scripting/Needs_Example}} | ||
=== Notes === | |||
== Related Functions == | |||
{{Scripting/Squirrel/Functions/Vehicle_Functions}} |
Revision as of 14:57, 13 December 2014
This function will create a pickup.
Syntax
1
CreatePickup( model , pos )
2
CreatePickup( model, world, quantity, pos, alpha, isAuto )
3
CreatePickupExpanded( model, world, quantity, x, y, z, alpha, isAuto )
Arguments
1
- int model - The model of pickup.
- Vector pos - The pos of pickup.
2
- int model - The model of pickup.
- int world - The world of pickup.
- int quantity - The quantity of pickup.
- Vector pos - The pos of pickup.
- int alpha - The alpha of pickup.
- bool isAuto - (Is auto respawn?)
3
- int model - The model of pickup.
- int world - The world of pickup.
- int quantity - The quantity of pickup.
- float x - The x pos of pickup.
- float y - The y pos of pickup.
- float z - The z pos of pickup.
- int alpha - The alpha of pickup.
- bool isAuto - (Is auto respawn?)
Example
This page needs an example. We will try our best to complete the wiki as soon as possible.
Notes
Related Functions
- ResetAllVehicleHandling
- IsHandlingRuleSet
- SetHandlingRule
- GetHandlingRule
- ResetHandlingRule
- ResetVehicleHandling
- Vehicle.AddRelTurnSpeed
- Vehicle.AddSpeed
- Vehicle.AddTurnSpeed
- Vehicle.Alarm
- Vehicle.Angle
- Vehicle.Colour1
- Vehicle.Colour2
- Vehicle.Damage
- Vehicle.Delete
- Vehicle.Driver
- Vehicle.EulerAngle
- Vehicle.EulerSpawnAngle
- Vehicle.Fix
- Vehicle.GetHandlingData
- Vehicle.GetOccupant
- Vehicle.GetPart
- Vehicle.GetTyre
- Vehicle.Health
- Vehicle.ID
- Vehicle.Immunity
- Vehicle.IsGhost
- Vehicle.IsHandlingSet
- Vehicle.Kill
- Vehicle.Lights
- Vehicle.Locked
- Vehicle.Model
- Vehicle.Pos
- Vehicle.Radio
- Vehicle.RadioLocked
- Vehicle.RelativeSpeed
- Vehicle.RelativeTurnSpeed
- Vehicle.ResetAllHandling
- Vehicle.ResetHandlingData
- Vehicle.Respawn
- Vehicle.RespawnTimer
- Vehicle.Rotation
- Vehicle.SetFlatTyres
- Vehicle.SetHandlingData
- Vehicle.SetPart
- Vehicle.SetTyre
- Vehicle.Siren
- Vehicle.SpawnAngle
- Vehicle.SpawnPos
- Vehicle.Speed
- Vehicle.StreamedForPlayer
- Vehicle.SyncSource
- Vehicle.SyncType
- Vehicle.TurnSpeed
- Vehicle.TurretRotation
- Vehicle.World
- Vehicle.Wrecked