Posts: 314
Threads: 103
Joined: Jun 2014
Some Questions From My Side
Hello Scripters, Today I Thought of some Ideas For my Server but the difficulty is I don't know that how to create them, My Question is:-
1) How Can I Make an NPC That will shoot with Sniper if player will be in Range of x, y, z Point.
2) How Can I Make a Gate in which If there will be explosion in 5m of Range, Then the gate Will Destroy( I mean the Gate Will Move).
3) uhhhh... Forgot the 3rd Question xD
And One More Thing Giving +Rep To the Person Who will Answer Both Questions..
Posts: 314
Threads: 103
Joined: Jun 2014
BUMP! Can Anyone Reply Please... >>>>****** , Cessil or Lordzy Or Whoever knows...
Posts: 586
Threads: 16
Joined: Mar 2008
Reputation:
0
2) depends on what kind of explosion you want to destroy the gate with and the gate object. Some gate objects will break if an explosion happens near them in singleplayer.
Posts: 314
Threads: 103
Joined: Jun 2014
@Patrik you didn't understood my question, I want Gate to be moved when theres a explosion near 5m of range
Posts: 366
Threads: 113
Joined: Feb 2014
1) Use FCNPC , they are very useful , you can use a callback "FCNPC_AimAt" to allow NPC to Shoot .
Click Here To Redirect.
2) Create gates by CreateObject and make a code (i don't know exact about explosion in 5m but it think it will be similar like CreateExplosion(x, y, z, 12, 10.0); ,or maybe exact ) Ok then use MoveObject .
Posts: 314
Threads: 103
Joined: Jun 2014
Arxala, dude I Know how to move objects, But I'm Asking How Can I Make Them move When There will be an explosion
Posts: 314
Threads: 103
Joined: Jun 2014
Hmmmm.... Nice Idea.. Well Thanks..
Posts: 366
Threads: 113
Joined: Feb 2014
As GGW gave you an idea so your 2nd problem is also solved now and i already gave you FCNPC link , you will be able to make NPC and able to set a function easily with FCNPC.
Posts: 314
Threads: 103
Joined: Jun 2014