Branches

From Multi Theft Auto: Wiki
Revision as of 19:32, 21 June 2012 by Cazomino05 (talk | contribs)
Jump to navigation Jump to search

Weapon Creation

Weapon creation is a branch for creating weapon elements which can fire bullets

Status: In process Branch: Weapon-Creation Branch version: 1.4

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

Custom animations

Custom Animations is a branch for loading animations from .ifp files

Status: Abandoned Branch: Custom-Animations Branch version: 1.4

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