Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Tree
AdelS
Little Clucker
Posts: 43
Threads: 20
Joined: Aug 2014
Reputation:
0
#1
22.09.2014, 16:39
How can I set tree health,and that I can cut him.When I cut him that he falls? Sorry for by bad English.
Find
Reply
ranme15
Big Clucker
Posts: 181
Threads: 38
Joined: Aug 2010
Reputation:
0
#2
22.09.2014, 17:51
CreateObject -> OnPlayerWeaponShot (hittype object) -> Cutted (SetObjectRot(90.0, 0, 0).
Find
Reply
AdelS
Little Clucker
Posts: 43
Threads: 20
Joined: Aug 2014
Reputation:
0
#3
22.09.2014, 18:20
Can you explain,please?
Find
Reply
dusk
High-roller
Posts: 1,113
Threads: 127
Joined: Jul 2008
Reputation:
0
#4
22.09.2014, 18:54
Quote:
Originally Posted by
ranme15
CreateObject -> OnPlayerWeaponShot (hittype object) -> Cutted (SetObjectRot(90.0, 0, 0).
Only if you "cut" it with ceratin weapons. Weapons that shoot bullets to be exact. So a thing like a spade won't work.
My suggestion:
Create a variable for vehicle health
Create a tree object
Choose a way that the tree will be cut: pressing a key, a command
When a player interacts with that tree, lower it's health and check if it zero
If it is 0. Remove that tree object and create some sort of fallen tree object
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help