Branches: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Todo: sort formatting.)
No edit summary
Line 1: Line 1:
 
=== Weapon Creation ===
== Weapon Creation ==
Weapon creation is a branch for creating friable weapon elements
Weapon creation is a branch for creating friable weapon elements


Status: In process
Status: In process
Branch: Weapon-Creation
Branch: Weapon-Creation
Functions:
 
===Functions===
weapon createWeapon(type, x, y, z)
weapon createWeapon(type, x, y, z)
type = weapon name e.g. M4
type = weapon name e.g. M4
x, y, z = x,y,z position
x, y, z = x,y,z position
bool fireWeapon(weapon)
bool fireWeapon(weapon)
bool setWeaponState(weapon, state)
bool setWeaponState(weapon, state)
state = "ready", "firing" or "reloading"
state = "ready", "firing" or "reloading"
bool setWeaponProperty(weapon, property, value)
bool setWeaponProperty(weapon, property, value)
property = damage/accuracy
property = damage/accuracy

Revision as of 19:31, 21 June 2012

Weapon Creation

Weapon creation is a branch for creating friable weapon elements

Status: In process Branch: Weapon-Creation

Functions

weapon createWeapon(type, x, y, z) type = weapon name e.g. M4 x, y, z = x,y,z position

bool fireWeapon(weapon)

bool setWeaponState(weapon, state) state = "ready", "firing" or "reloading"

bool setWeaponProperty(weapon, property, value) property = damage/accuracy